| 1 |
#!/usr/bin/make -f |
#!/usr/bin/make -f |
| 2 |
|
|
| 3 |
DESTDIR=`pwd`/debian/fai |
DESTDIR=`pwd`/debian/fai |
| 4 |
|
SHAREDIR = $(DESTDIR)/usr/share/fai |
| 5 |
|
DOCDIR=`pwd`/debian/fai-doc/usr/share/doc/fai-doc |
| 6 |
|
|
| 7 |
|
# we never want CVS and subversion files in our packages |
| 8 |
|
export DH_ALWAYS_EXCLUDE=CVS:.svn |
| 9 |
|
|
| 10 |
# Uncomment this to turn on verbose mode. |
# Uncomment this to turn on verbose mode. |
| 11 |
#export DH_VERBOSE=1 |
#export DH_VERBOSE=1 |
| 12 |
|
|
|
# This is the debhelper compatability version to use. |
|
|
export DH_COMPAT=2 |
|
|
|
|
| 13 |
include VERSION |
include VERSION |
| 14 |
|
|
| 15 |
build: build-stamp |
build: build-stamp |
| 16 |
build-stamp: |
build-stamp: |
| 17 |
dh_testdir |
dh_testdir |
| 18 |
|
|
| 19 |
# Add here commands to compile the package. |
# Add here commands to compile the package. |
| 20 |
$(MAKE) all |
$(MAKE) all |
| 21 |
|
|
| 22 |
touch build-stamp |
touch build-stamp |
| 25 |
dh_testdir |
dh_testdir |
| 26 |
# dh_testroot |
# dh_testroot |
| 27 |
rm -f build-stamp |
rm -f build-stamp |
| 28 |
dh_clean |
# Add here commands to clean up after the build process. |
|
# Add here commands to clean up after the build process. |
|
| 29 |
-$(MAKE) clean |
-$(MAKE) clean |
| 30 |
|
dh_clean |
| 31 |
|
|
| 32 |
install: build |
install: build |
| 33 |
dh_testdir |
dh_testdir |
| 34 |
dh_testroot |
dh_testroot |
| 35 |
dh_clean -k |
dh_clean -k |
| 36 |
dh_installdirs |
dh_installdirs |
| 37 |
# Add here commands to install the package into debian/fai. |
# Add here commands to install the package into debian/fai. |
| 38 |
$(MAKE) install DESTDIR=`pwd`/debian/fai |
$(MAKE) install |
|
|
|
| 39 |
|
|
| 40 |
# Build architecture-independent files here. |
# Build architecture-independent files here. |
| 41 |
binary-indep: build install |
binary-indep: build install |
|
# dh_testversion |
|
| 42 |
dh_testdir |
dh_testdir |
| 43 |
dh_testroot |
dh_testroot |
| 44 |
# dh_installdebconf |
# dh_installdebconf |
| 45 |
dh_installdocs |
dh_installdocs |
| 46 |
# dh_installexamples |
# dh_installexamples |
| 47 |
# dh_installmenu |
# dh_installmenu |
| 48 |
dh_installmanpages |
dh_installman man/*.[1-9] |
| 49 |
# dh_installinfo |
# dh_installinfo |
|
dh_undocumented |
|
| 50 |
dh_installchangelogs |
dh_installchangelogs |
| 51 |
# dh_link |
# dh_link |
| 52 |
dh_compress -Xtemplates |
dh_compress -Xexamples -X.pdf |
| 53 |
dh_fixperms |
dh_fixperms -X make-fai-nfsroot.conf |
| 54 |
chmod a+rx ${DESTDIR}/usr/share/fai/templates/class/S[0-9]*.{sh,pl} |
chmod a+rx ${DOCDIR}/examples/*/class/[0-9][0-9]* |
| 55 |
chmod a+rx ${DESTDIR}/usr/share/fai/templates/scripts/* |
chmod -R a+rx ${DOCDIR}/examples/*/scripts/* |
| 56 |
chmod a+rx ${DESTDIR}/usr/lib/fai/sbin/rcS_fai |
chmod a+rx ${DOCDIR}/examples/*/hooks/* |
| 57 |
|
find ${DOCDIR}/examples/*/files -name postinst | xargs chmod a+x |
| 58 |
|
chmod a+rx ${DOCDIR}/examples/utils/* |
| 59 |
perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' ${DESTDIR}/usr/share/doc/fai/README |
perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' ${DESTDIR}/usr/share/doc/fai/README |
| 60 |
find ${DESTDIR} -name CVS |xargs rm -rf |
# You may want to make some executables suid here. |
|
# You may want to make some executables suid here. |
|
| 61 |
dh_installdeb |
dh_installdeb |
| 62 |
dh_gencontrol |
dh_gencontrol |
| 63 |
dh_md5sums |
dh_md5sums |