| 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=$(DESTDIR)/usr/share/doc/fai |
| 6 |
|
|
| 7 |
# Uncomment this to turn on verbose mode. |
# Uncomment this to turn on verbose mode. |
| 8 |
#export DH_VERBOSE=1 |
#export DH_VERBOSE=1 |
| 9 |
|
|
| 10 |
# This is the debhelper compatability version to use. |
# This is the debhelper compatability version to use. |
| 11 |
export DH_COMPAT=2 |
export DH_COMPAT=3 |
| 12 |
|
|
| 13 |
include VERSION |
include VERSION |
| 14 |
|
|
| 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 |
| 26 |
# dh_testroot |
# dh_testroot |
| 27 |
rm -f build-stamp |
rm -f build-stamp |
| 28 |
dh_clean |
dh_clean |
| 29 |
# Add here commands to clean up after the build process. |
# Add here commands to clean up after the build process. |
| 30 |
-$(MAKE) clean |
-$(MAKE) clean |
| 31 |
|
|
| 32 |
install: build |
install: build |
| 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 DESTDIR=`pwd`/debian/fai |
| 39 |
|
|
| 40 |
|
|
| 47 |
dh_installdocs |
dh_installdocs |
| 48 |
# dh_installexamples |
# dh_installexamples |
| 49 |
# dh_installmenu |
# dh_installmenu |
| 50 |
dh_installmanpages |
dh_installman man/*.[1-9] |
| 51 |
# dh_installinfo |
# dh_installinfo |
|
dh_undocumented |
|
| 52 |
dh_installchangelogs |
dh_installchangelogs |
| 53 |
# dh_link |
# dh_link |
| 54 |
dh_compress -Xtemplates |
dh_compress -Xexamples -X.pdf |
| 55 |
dh_fixperms |
dh_fixperms |
| 56 |
chmod a+rx ${DESTDIR}/usr/share/fai/templates/class/S[0-9]*.{sh,pl} |
chmod a+rx ${DOCDIR}/examples/*/class/[0-9][0-9]* |
| 57 |
chmod a+rx ${DESTDIR}/usr/share/fai/templates/scripts/* |
chmod -R a+rx ${DOCDIR}/examples/*/scripts/* |
| 58 |
|
chmod a+rx ${SHAREDIR}/utils/* |
| 59 |
chmod a+rx ${DESTDIR}/usr/lib/fai/sbin/rcS_fai |
chmod a+rx ${DESTDIR}/usr/lib/fai/sbin/rcS_fai |
| 60 |
perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' ${DESTDIR}/usr/share/doc/fai/README |
perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' ${DOCDIR}/README |
| 61 |
find ${DESTDIR} -name CVS |xargs rm -rf |
find ${DESTDIR} -name CVS |xargs rm -rf |
| 62 |
# You may want to make some executables suid here. |
# You may want to make some executables suid here. |
| 63 |
dh_installdeb |
dh_installdeb |
| 64 |
dh_gencontrol |
dh_gencontrol |
| 65 |
dh_md5sums |
dh_md5sums |