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
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# We depend on baashisms
SHELL=/bin/bash
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=4
build: build-stamp
build-stamp:
dh_testdir
autoconf
./configure --with-tigerhome=/usr/lib/tiger --with-tigerwork=/var/lib/tiger/work --with-tigerlog=/var/log/tiger --with-tigerbin=/usr/sbin --with-tigerconfig=/etc/tiger --prefix=/usr --mandir=/usr/share/man
$(MAKE) all
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
[ -f Makefile ] && $(MAKE) distclean || $(MAKE) -f Makefile.in distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tiger.
$(MAKE) install DESTDIR=debian/tiger/
# Just in case
chmod a+x debian/tiger/usr/lib/tiger/systems/Linux/2/{deb,gen,check}_*
chmod a+x debian/tiger/usr/lib/tiger/scripts/check_*
# This is not needed
-rm -rf debian/tiger/usr/lib/tiger/man/
# Remove the systems that do not apply.
# Currently only Linux and default
# AIX/ default/ HPUX/ IRIX/ Linux/ NeXT/ SunOS/ UNICOS/ UNICOSMK
# TODO: make this for all dirs save for Linux and default (i.e.
# make this 'mv' more generic)
-find debian/tiger/ -type d -a -name "CVS" |xargs rm -rf
mv debian/tiger/usr/lib/tiger/systems/{AIX,HPUX,IRIX,NeXT,SunOS,UNICOS,UNICOSMK,Tru64,MacOSX} debian/tiger-otheros/usr/lib/tiger/systems/
#install -m 755 debian/tiger debian/tiger/usr/sbin/
#install -m 755 debian/tigexp debian/tiger/usr/sbin/
#install -m 755 tigercron debian/tiger/usr/lib/tiger/
install -m 600 cronrc debian/tiger/etc/tiger/
# Do not install tigerrc, it is handled by ucf since it is edited by Debconf prompts:
#install -m 600 tigerrc debian/tiger/etc/tiger/
-rm -f debian/tiger/etc/tiger/tigerrc
install -m 600 debian/tiger.default debian/tiger/etc/default/tiger
install -m 600 debian/debian.ignore debian/tiger/etc/tiger/tiger.ignore
install -m 644 version.h debian/tiger/usr/lib/tiger/
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir
dh_testroot
dh_installdebconf
dh_installdocs
dh_installexamples tigerrc* site* cronrc debian/server.ignore
dh_installmenu
dh_installcron
dh_installman man/tiger.8 man/tigexp.8 man/tigercron.8
dh_installinfo
dh_installchangelogs CHANGES
dh_link
dh_strip -XHPUX -XSunOS -XAIX -XIRIX -XNeXT -XMacOSX
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps -XHPUX -XSunOS -XAIX -XIRIX -XNeXT -XMacOSX
dh_gencontrol
dh_md5sums
dh_builddeb
update-dsa:
# Updated Debian Security Advisories
# This target should only be run by the Debian maintainer (which needs
# to fix the update_advisories appropiately)
cd systems/Linux/2 && sh update_advisories.sh
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|