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 127 128 129 130 131 132 133 134
|
#!/usr/bin/make -f
build:
cd src && ./configure --prefix=/
cd src && make
uudecode debian/debian.pcx.uu --o debian/debian.pcx
touch build
clean:
if [ -f src/Makefile ]; then cd src && make distclean; fi
rm -f build debian/debian.pcx
-test -r /usr/share/misc/config.sub && \
cp -f /usr/share/misc/config.sub src/autoconf/config.sub
-test -r /usr/share/misc/config.guess && \
cp -f /usr/share/misc/config.guess src/autoconf/config.guess
dh_clean
binary-indep:
binary-arch: build
# Initialize the building procedure
dh_testdir
dh_testroot
dh_clean
dh_installdirs
# Install the configuration files
install -p -o root -g root -m 644 conf/bnetd.conf.in \
debian/bnetd/etc/bnetd/bnetd.conf
#ln -s bnetd/bnetd.conf debian/bnetd/etc/bnetd.conf
install -p -o root -g root -m 644 conf/bnetd_default_user \
debian/bnetd/etc/bnetd/bnetd_default_user
install -p -o root -g root -m 644 conf/channel.list \
debian/bnetd/etc/bnetd/channel.list
install -p -o root -g root -m 644 conf/bnmotd.txt \
debian/bnetd/etc/bnetd/bnmotd.txt
install -p -o root -g root -m 644 debian/changelog \
debian/bnetd/etc/bnetd/news.txt
install -p -o root -g root -m 644 conf/ad.list \
debian/bnetd/etc/bnetd/ad.list
install -p -o root -g root -m 644 conf/bnissue.txt \
debian/bnetd/etc/bnetd/bnissue.txt
# Install the Terms of Service
install -p -o root -g root -m 644 files/tos_USA.txt \
debian/bnetd/etc/bnetd/tos_USA.txt
install -p -o root -g root -m 644 files/tos_DEU.txt \
debian/bnetd/etc/bnetd/tos_DEU.txt
# Install the banners
install -p -o root -g root -m 644 files/ad000001.pcx \
debian/bnetd/usr/share/bnetd/ad000001.pcx
install -p -o root -g root -m 644 debian/debian.pcx \
debian/bnetd/usr/share/bnetd/debian.pcx
# Install the files
install -p -o root -g root -m 644 files/icons.bni \
debian/bnetd/usr/share/bnetd/icons.bni
install -p -o root -g root -m 644 conf/bnhelp \
debian/bnetd/usr/share/bnetd/bnhelp
# Install the bnetd console applications
install -s -o root -g root -m 755 bin/bnbot \
debian/bnetd/usr/bin/bnbot
install -s -o root -g root -m 755 bin/bnchat \
debian/bnetd/usr/bin/bnchat
install -s -o root -g root -m 755 bin/bnftp \
debian/bnetd/usr/bin/bnftp
install -s -o root -g root -m 755 bin/bnpass \
debian/bnetd/usr/bin/bnpass
install -s -o root -g root -m 755 bin/bnstat \
debian/bnetd/usr/bin/bnstat
# Install the bnetd daemon
install -s -o root -g root -m 755 sbin/bnetd \
debian/bnetd/usr/sbin/bnetd
install -s -o root -g root -m 755 sbin/bnproxy \
debian/bnetd/usr/sbin/bnproxy
# Install the man1 pages
# install -p -o root -g root -m 644 man/bnetd.1 \
# debian/bnetd/usr/man/man1/bnetd.1
# install -p -o root -g root -m 644 man/bnpass.1 \
# debian/bnetd/usr/man/man1/bnpass.1
# install -p -o root -g root -m 644 debian/bnbot.1 \
# debian/bnetd/usr/man/man1/bnbot.1
# install -p -o root -g root -m 644 man/bnftp.1 \
# debian/bnetd/usr/man/man1/bnftp.1
# install -p -o root -g root -m 644 man/bnchat.1 \
# debian/bnetd/usr/man/man1/bnchat.1
# Install the man4 pages
# install -p -o root -g root -m 644 man/bntext.4 \
# debian/bnetd/usr/man/man4/bntext.4
# install -p -o root -g root -m 644 man/bnetd.conf.4 \
# debian/bnetd/usr/man/man4/bnetd.conf.4
# install -p -o root -g root -m 644 man/bntext.4 \
# debian/bnetd/usr/man/man4/bntext.4
# install -p -o root -g root -m 644 man/bnmotd.txt.4 \
# debian/bnetd/usr/man/man4/bnmotd.txt.4
# install -p -o root -g root -m 644 man/bnnews.txt.4 \
# debian/bnetd/usr/man/man4/bnnews.txt.4
# Install the docs
# install -p -o root -g root -m 644 CHANGELOG \
# debian/bnetd/usr/doc/bnetd/CHANGELOG
# install -p -o root -g root -m 644 CREDITS \
# debian/bnetd/usr/doc/bnetd/CREDITS
# install -p -o root -g root -m 644 README \
# debian/bnetd/usr/doc/bnetd/README
# Install the other (Debian) stuff
dh_installdocs
mv debian/bnetd/usr/share/doc/bnetd/CHANGELOG debian/bnetd/usr/share/doc/bnetd/changelog
dh_installexamples
# dh_installmenu
# dh_installemacsen
dh_installinit
# dh_installcron
dh_installman
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
binary: binary-arch binary-indep
.PHONY: clean binary binary-arch binary-indep
|