2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 by Joey Hess.
5 # This version is for a hypothetical package that builds an
6 # architecture-dependant package, as well as an architecture-independent
9 # Uncomment this to turn on verbose mode.
12 # This is the debhelper compatability version to use.
15 # This has to be exported to make some magic below work.
18 CONFIGURE_ROOT=--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc --datadir=/etc --with-ares=/usr
21 configure: configure-stamp
24 # Add here commands to configure the package.
26 cd krb&&../configure --with-krb4=/usr $(CONFIGURE_ROOT)
28 cd no-krb&&../configure $(CONFIGURE_ROOT)
31 build: configure-stamp build-stamp
35 # Add here commands to compile the package.
37 for dir in krb no-krb ; do \
39 rm -f lib/*.o || true; \
45 FPIC=-fpic SONAME=$(SONAME); \
54 -rm -f build-stamp configure-stamp
56 # Add here commands to clean up after the build process.
57 -rm -rf krb no-krb debian/tmp-krb
58 -rm debian/zephyr-server-krb.*
59 -rm debian/libzephyr3-krb.files
68 -rm -rf debian/tmp-krb
71 # Add here commands to install the package into debian/tmp.
72 cd no-krb&&$(MAKE) install DESTDIR=`pwd`/../debian/tmp
73 cd krb&&$(MAKE) DESTDIR=`pwd`/../debian/tmp-krb install
74 mv debian/tmp/usr/lib/libzephyr.so debian/tmp/usr/lib/libzephyr.so.$(SONAME)
75 ln -s libzephyr.so.$(SONAME) debian/tmp/usr/lib/libzephyr.so
76 mv debian/tmp-krb/usr/lib/libzephyr.so debian/tmp-krb/usr/lib/libzephyr.so.$(SONAME)
77 ln -s libzephyr.so.$(SONAME) debian/tmp-krb/usr/lib/libzephyr.so
78 mkdir -p debian/tmp/etc/zephyr/acl
79 set -x; for i in debian/acl/*; do install -c -m 644 -o root $$i debian/tmp/etc/zephyr/acl; done; set +x
80 install -c -m 644 debian/zephyr.vars debian/tmp/etc/zephyr
81 install -c -m 644 debian/default.subscriptions debian/tmp/etc/zephyr
82 cp -pr debian/tmp/etc/zephyr/acl debian/tmp-krb/etc/zephyr
84 # Build architecture-independent files here.
85 # Pass -i to all debhelper commands in this target to reduce clutter.
86 binary-indep: build install
88 # Build architecture-dependent files here.
89 # Pass -a to all debhelper commands in this target to reduce clutter.
90 binary-arch: build install
94 for file in files templates config postinst; do \
95 cp debian/zephyr-server.$$file debian/zephyr-server-krb.$$file; \
97 cp debian/libzephyr3.files debian/libzephyr3-krb.files
98 dh_movefiles -plibzephyr3 -pzephyr-clients -pzephyr-server -plibzephyr-dev
99 dh_movefiles --sourcedir=debian/tmp-krb -plibzephyr3-krb -pzephyr-server-krb
106 dh_installinit -pzephyr-clients --init-script=zhm
107 dh_installinit -pzephyr-server-krb --init-script=zephyrd
108 dh_installinit -pzephyr-server --init-script=zephyrd
118 # You may want to make some executables suid here.
127 binary: binary-indep binary-arch
129 .PHONY: build clean binary-indep binary-arch binary install configure