1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
rm -f config
./configure.sh linux-gnutls -lua -luafilesystem -luacurl -luaexpat -fltk-ui -luasocket
touch configure-stamp
build: build-stamp
build-manual: build-manual-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE) all WHERE=/usr/ LOCALEDIR=/usr/share/locale
touch build-stamp
build-manual-stamp: build-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE) manual WHERE=/usr/
touch build-manual-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp build-manual-stamp
# Add here commands to clean up after the build process.
$(MAKE) realclean || true # can fail if the previous compilation fails
dh_clean
debconf-updatepo
install-common:
dh_testdir
dh_testroot
dh_clean
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/freepops/ WHERE=/usr/ LOCALEDIR=/usr/share/locale
-mv $(CURDIR)/debian/freepops/usr/share/doc/freepops/*.pdf \
$(CURDIR)/debian/freepops-doc/usr/share/doc/freepops-doc/
mv $(CURDIR)/debian/freepops/usr/lib/freepops/*.so \
$(CURDIR)/debian/freepops-updater-fltk/usr/lib/freepops/
mv $(CURDIR)/debian/freepops/usr/share/man/man1/freepops-updater-fltk.1\
$(CURDIR)/debian/freepops-updater-fltk/usr/share/man/man1/
mv $(CURDIR)/debian/freepops/usr/bin/freepops-updater-fltk \
$(CURDIR)/debian/freepops-updater-fltk/usr/bin
cp updater-ui/fltk/freepops-updater-fltk-32.xpm \
$(CURDIR)/debian/freepops-updater-fltk/usr/share/pixmaps/
mv $(CURDIR)/debian/freepops/usr/share/locale/ $(CURDIR)/debian/freepops-updater-fltk/usr/share/
mv $(CURDIR)/debian/freepops/usr/share/man/man1/freepops-updater-zenity.1\
$(CURDIR)/debian/freepops-updater-gnome/usr/share/man/man1/
mv $(CURDIR)/debian/freepops/usr/bin/freepops-updater-zenity \
$(CURDIR)/debian/freepops-updater-gnome/usr/bin
cp updater-ui/zenity/freepops-updater-zenity.svg \
$(CURDIR)/debian/freepops-updater-gnome/usr/share/pixmaps/
cp debian/freepops-updater-gnome.desktop \
$(CURDIR)/debian/freepops-updater-gnome/usr/share/applications/
install-manual: build-manual install-common
install: build install-common
#create the /etc/freepops/freepops.conf file
DESTDIR=$(CURDIR)/debian/freepops; \
FILE=$$DESTDIR/etc/default/freepops; \
echo "#####################################"> $$FILE; \
echo "# configuration file for freepopsd.">> $$FILE; \
echo "# ">> $$FILE; \
echo "# man freepopsd for more info. ">> $$FILE; \
echo "DAEMON=\"/usr/bin/freepopsd\"">> $$FILE; \
echo "DAEMON_OPTS=\" -n -s nobody.nogroup\"">> $$FILE; \
echo "PIDFILE=\"/var/run/freepops.pid\"">> $$FILE; \
echo "CHROOTED_DAEMON_OPTS=\" -n -s nobody.nogroup\"">> $$FILE
#istall the icon
DESTDIR=$(CURDIR)/debian/freepops; \
cp modules/src/winsystray/freepops-32.xpm $$DESTDIR/usr/share/pixmaps/
DESTDIR=$(CURDIR)/debian/freepops; \
cp scripts/create_jail.sh $$DESTDIR/usr/lib/freepops
# Build architecture-independent files here.
binary-indep: build build-manual install-manual
dh_testdir -i
dh_testroot -i
dh_installchangelogs ChangeLog -i
dh_installdocs -i
dh_installexamples -i
dh_installdebconf -i
dh_installinit -n -i
dh_installman -i
dh_installcron -i
dh_link -i
dh_strip -i
dh_compress -X.pdf -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_installchangelogs ChangeLog -a
dh_installdocs -a
dh_installexamples -a
dh_installmenu -a
dh_installcron -a
dh_installdebconf -a
dh_installinit -n -a
dh_installman -a
dh_link -a
dh_strip -a
dh_compress -X.pdf -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|