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
|
#!/usr/bin/make -f
#
# debian/rules for fsp 2.71. Revision 5.
# 10-12 July 1996 Stuart Lamble <lamble@yoyo.cc.monash.edu.au>
#
# Last revised Tue, 24 Sep 1996 20:02:10 +1000 by Stuart Lamble.
#
# Copying and distribution of this file is unlimited.
CC = gcc
CFLAGS = -O2 -I../include -DHAVE_CONFIG_H -DNOLOCKING
LDFLAGS = -s
package = fsp
build:
./configure --prefix=/usr
make CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" fspserver merge
touch build
clean:
-make clean
-rm -f build
-rm -rf debian/tmp *~ debian/*~ debian/files*
-cp Makefile.dist Makefile
binary-indep: checkroot build
$(checkdir)
binary-arch: checkroot build
$(checkdir)
# Just to make sure.
-[ -d debian/tmp ] && rm -rf debian/tmp
install -d -g root -m 755 -o root debian/tmp
chmod g-s debian/tmp
install -d -g root -m 755 -o root debian/tmp/DEBIAN
install -d -g root -m 755 -o root debian/tmp/usr/bin
install -d -g root -m 755 -o root debian/tmp/usr/sbin
install -d -g root -m 755 -o root debian/tmp/usr/man/man1
install -d -g root -m 755 -o root debian/tmp/usr/man/man5
install -d -g root -m 755 -o root debian/tmp/usr/doc/fsp/examples
install -d -g root -m 755 -o root debian/tmp/etc
install -d -g root -m 755 -o root debian/tmp/etc/cron.weekly
install -d -g root -m 755 -o root debian/tmp/var/log
install -d -g staff -m 755 -o root debian/tmp/var/log/fsp
install -d -g root -m 755 -o root debian/tmp/var/lib
install -d -g staff -m 755 -o root debian/tmp/var/lib/fspd
# Uncomment this if you want separate binaries for each command,
# rather than one big binary that does everything. Doing this
# increases the disk space requirements by about 200k (based on
# a system with 1k blocks) - the binaries weigh in at 233192 bytes
# stripped, compared with 45388 bytes stripped. The saving in disk
# space may not be a worthwhile tradeoff if many copies of the
# clients are in use at any given time, requiring more memory than
# would otherwise be the case.
#
# Similarly, you need to use "make fspclients" rather than "make merge"
# to compile these clients.
#
# make install prefix=`pwd`/debian/tmp/usr
make install-merge prefix=`pwd`/debian/tmp/usr
make install-man prefix=`pwd`/debian/tmp/usr
strip debian/tmp/usr/bin/*
strip debian/tmp/usr/sbin/*
# Finally found out how to get tcpd working with fspd. Thanks,
# Michael Meskes.
ln -s fspd debian/tmp/usr/sbin/in.fspd
install -g root -m 644 -o root I* debian/tmp/usr/doc/fsp/
install -g root -m 644 -o root FAQ debian/tmp/usr/doc/fsp
install -g root -m 644 -o root debian/changelog \
debian/tmp/usr/doc/fsp/changelog.Debian
install -g root -m 644 -o root ChangeLog \
debian/tmp/usr/doc/fsp/changelog
-gzip -9 debian/tmp/usr/doc/fsp/*
install -g root -m 644 -o root debian/copyright \
debian/tmp/usr/doc/$(package)/
cp setup debian/tmp/usr/doc/$(package)/examples/aliases.csh
install -g root -m 755 -o root debian/fsp.cron \
debian/tmp/etc/cron.weekly/fspd
chmod -R g-sw debian/tmp/usr/doc/$(package)/examples
chown -R root.root debian/tmp/usr/doc/$(package)/examples
# sed -e '4s/=V/$(v)-$(d)/' -e '5s/=A/$(shell dpkg --print-architecture)/' debian.control \
# > debian/tmp/DEBIAN/control
install -g root -m 644 -o root debian/conffiles debian/tmp/DEBIAN/conffiles
install -g root -m 644 -o root example.conf debian/tmp/etc/fspd.conf
# gzip -9 all the man pages.
gzip -9 debian/tmp/usr/man/man[15]/*
# install -g root -m 755 -o root debian/preinst debian/tmp/DEBIAN/preinst
install -g root -m 755 -o root debian/prerm debian/tmp/DEBIAN/prerm
install -g root -m 755 -o root debian/postinst debian/tmp/DEBIAN/postinst
install -g root -m 755 -o root debian/postrm debian/tmp/DEBIAN/postrm
# frm.1 conflicts with elm. Easier to just remove it (you can still use
# frmcmd.1 instead.)
rm debian/tmp/usr/man/man1/frm.1.gz
dpkg-shlibdeps clients/fspmerge server/fspd
dpkg-gencontrol
chmod -R g-ws debian/tmp
dpkg --build debian/tmp ..
define checkdir
test -f clients/fput.c -a -f debian/rules
endef
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|