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
|
#!/usr/bin/make -f
build:
cd src;./configure --prefix=/usr;make;cd ..
uudecode debian/debian.pcx.uu --o debian/debian.pcx
touch build
clean:
if [ -f src/Makefile ]; then cd src;make distclean;cd ..; fi
rm -f build debian/debian.pcx
dh_clean
# No binary independant packages from this.
binary-indep:
@echo "No architecture-independant stuff"
binary-arch: build
# Initialize the building procedure
dh_testdir
dh_clean
dh_installdirs
# Install the configuration files
install -p -o root -g root -m 644 conf/bnetd.conf \
debian/tmp/etc/bnetd/bnetd.conf
install -p -o root -g root -m 644 conf/bnetd_default_user \
debian/tmp/etc/bnetd/bnetd_default_user
install -p -o root -g root -m 644 conf/channel.list \
debian/tmp/etc/bnetd/channel.list
install -p -o root -g root -m 644 conf/bnmotd.txt \
debian/tmp/etc/bnetd/bnmotd.txt
install -p -o root -g root -m 644 debian/changelog \
debian/tmp/etc/bnetd/news.txt
install -p -o root -g root -m 644 debian/bnetd.reg \
debian/tmp/etc/bnetd/bnetd.reg
install -p -o root -g root -m 644 conf/ad.list \
debian/tmp/etc/bnetd/ad.list
# Install the banner
install -p -o root -g root -m 644 files/ad000001.pcx \
debian/tmp/usr/share/bnetd/ad000001.pcx
install -p -o root -g root -m 644 debian/debian.pcx \
debian/tmp/usr/share/bnetd/debian.pcx
# Install the files
install -p -o root -g root -m 644 files/icons.bni \
debian/tmp/usr/share/bnetd/icons.bni
install -p -o root -g root -m 644 files/tos.txt \
debian/tmp/usr/share/bnetd/tos.txt
# Install the bnetd console applications
install -s -o root -g root -m 755 bin/bnbot \
debian/tmp/usr/bin/bnbot
install -s -o root -g root -m 755 bin/bnchat \
debian/tmp/usr/bin/bnchat
install -s -o root -g root -m 755 bin/bnftp \
debian/tmp/usr/bin/bnftp
install -s -o root -g root -m 755 bin/bnpass \
debian/tmp/usr/bin/bnpass
install -s -o root -g root -m 755 bin/bnstat \
debian/tmp/usr/bin/bnstat
# Install the bnetd daemon
install -s -o root -g root -m 755 sbin/bnetd \
debian/tmp/usr/sbin/bnetd
install -s -o root -g root -m 755 sbin/bnproxy \
debian/tmp/usr/sbin/bnproxy
# Install the man1 pages
# install -p -o root -g root -m 644 man/bnetd.1 \
# debian/tmp/usr/man/man1/bnetd.1
# install -p -o root -g root -m 644 man/bnpass.1 \
# debian/tmp/usr/man/man1/bnpass.1
# install -p -o root -g root -m 644 debian/bnbot.1 \
# debian/tmp/usr/man/man1/bnbot.1
# install -p -o root -g root -m 644 man/bnftp.1 \
# debian/tmp/usr/man/man1/bnftp.1
# install -p -o root -g root -m 644 man/bnchat.1 \
# debian/tmp/usr/man/man1/bnchat.1
# Install the man4 pages
# install -p -o root -g root -m 644 man/bntext.4 \
# debian/tmp/usr/man/man4/bntext.4
# install -p -o root -g root -m 644 man/bnetd.conf.4 \
# debian/tmp/usr/man/man4/bnetd.conf.4
# install -p -o root -g root -m 644 man/bntext.4 \
# debian/tmp/usr/man/man4/bntext.4
# install -p -o root -g root -m 644 man/bnmotd.txt.4 \
# debian/tmp/usr/man/man4/bnmotd.txt.4
# install -p -o root -g root -m 644 man/bnnews.txt.4 \
# debian/tmp/usr/man/man4/bnnews.txt.4
# Install the docs
# install -p -o root -g root -m 644 CHANGELOG \
# debian/tmp/usr/doc/bnetd/CHANGELOG
# install -p -o root -g root -m 644 CREDITS \
# debian/tmp/usr/doc/bnetd/CREDITS
# install -p -o root -g root -m 644 README \
# debian/tmp/usr/doc/bnetd/README
# Install the other (Debian) stuff
# dh_testversion
dh_testroot
dh_installdocs
mv debian/tmp/usr/share/doc/bnetd/CHANGELOG debian/tmp/usr/share/doc/bnetd/changelog
# dh_installexamples
# dh_installmenu
# dh_installemacsen
dh_installinit
# dh_installcron
dh_installmanpages man
# dh_undocumented
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
binary: binary-arch binary-indep
.PHONY: clean binary binary-arch binary-indep
|