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
|
#!/usr/bin/make -f
#
# Modified to be a prototype for debmake by Christoph Lameter <clameter@debian.org>
#
# Modified to work for fte by Riku Voipio <riku.voipio@iki.fi>
#
# Modified to work for fte by Zdenek Kabelac <kabi@debian.org>
INST=install -p
DIRDOC=debian/doc
DEBSTD=debstd
#/var/Alien/Debian/Fte46b5/debstd
package=fte
cfgdocs=$(package)-cfgdocs
console=$(package)-console
allpackages=debian/tmp debian/$(cfgdocs) debian/$(console)
build:
$(checkdir)
$(MAKE) -C src/ -f fte-unix.mak
touch build
clean:
$(checkdir)
@rm -f build
@rm -f `find . -name "*~"`
@rm -rf $(allpackages) debian/files* core fte-new.cnf
@$(MAKE) -C src/ -f fte-unix.mak clean
binary-indep:
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: checkroot build checkscripts
$(checkdir)
@echo "## Preparing packages"
@rm -rf $(allpackages)
@$(INST) -d debian
@cd debian; install -d `cat dirs`
@ln -s fte debian/$(cfgdocs)/usr/doc/$(cfgdocs)
@ln -s fte debian/$(console)/usr/doc/$(console)
# @ln -s ../fte/copyright debian/$(console)/usr/doc/$(console)/
# @ln -s ../fte/copyright debian/$(cfgdocs)/usr/doc/$(cfgdocs)/
@echo "/etc/fte/system.fterc" >debian/conffiles
# find config -type f | sed -e 's/^/\/etc\/fte\//g' >>debian/conffiles
@$(INST) -s -m 4755 src/vfte debian/$(console)/usr/bin/
@$(INST) -s src/cfte debian/$(cfgdocs)/usr/bin/
@$(INST) -s src/xfte debian/tmp/usr/X11R6/bin/
@$(INST) -m 755 debian/fte debian/tmp/usr/bin/fte
@src/cfte config/main.fte debian/tmp/etc/fte/system.fterc
@cp -a debian/xfte.1 debian/tmp/usr/X11R6/man/man1
@cp -a debian/cfte.1 debian/$(cfgdocs)/usr/man/man1
@cd debian/tmp/usr/man/man1 ; ln -s ../../X11R6/man/man1/xfte.1.gz fte.1.gz
@ln -s fte.1.gz debian/$(console)/usr/man/man1/vfte.1.gz
@tar cf debian/$(cfgdocs)/usr/doc/$(package)/config-example.tar config
@find doc -type f | grep -v INDEX >debian/$(cfgdocs).docs
# @cp -a doc/*.html debian/$(cfgdocs)/usr/doc/$(package)
# Must have debmake installed for this to work. Otherwise please copy
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
@chown -R root.root $(allpackages)
@chmod -R go=rX $(allpackages)
@$(DEBSTD) -m BUGS HISTORY README TODO
# dpkg-shlibdeps debian/tmp/usr/X11R6/bin/xfte -drecommends debian/tmp/usr/bin/vfte debian/tmp/usr/bin/cfte
@dpkg-gencontrol -pfte
dpkg --build debian/tmp ..
define checkdir
@test -f debian/rules
endef
checkscripts:
@echo "## Checking scripts"
@bash -n debian/postrm
@bash -n debian/postinst
# Below here is fairly generic really
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
checkroot:
$(checkdir)
@echo "## Checking ROOT user"
@test root = "`whoami`"
.PHONY: binary binary-indep binary-arch clean checkroot
|