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 135 136 137 138
|
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for the Debian/GNU Linux auto-pgp package
# Copyright 1998 by Dirk Eddelbuettel <edd@debian.org>
# To whom it may concern ;-)
#
# This upstream installation is a little baroque: you have to edit EDITME
# which is read by install.pl which is called by the Makefile. All of this
# does not work with the GNU $prefix style or the Perl MakeMaker style.
# I changed the values in EDITME to reflect the Debian 2.0 locations, the
# files are then installed into `pwd`/debian/tmp/usr/ and I then filter
# the `pwd`/debian/tmp part out with a Perl call from the Makefile.
#
# edd 04 May 98
package = auto-pgp
debtmp := $(shell pwd)/debian/tmp
debema := $(debtmp)/usr/lib/emacsen-common/packages
debest := $(debtmp)/etc/emacs/site-start.d
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
CC=gcc CFLAGS="-O2 -W" $(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) clean
dh_clean
binary-indep: build
binary-arch: build
# dh_testversion
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) prefix=$(debtmp)/usr install
install -p -m 0755 debian/$(package).install \
$(debema)/install/$(package)
install -p -m 0755 debian/$(package).remove \
$(debema)/remove/$(package)
# install -c -m 0644 debian/$(package).el \
# $(debest)/50$(package).el
dh_installdocs README
dh_installexamples
# dh_installmenu
# dh_installinit
# dh_installcron
# dh_installmanpages
dh_undocumented pgp-ringsearch.1
dh_installchangelogs Changelog
dh_strip
dh_compress
dh_fixperms
# dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
# dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
PKG_ABRV = auto-pgp
PKG_NAME = auto-pgp-1.04
DEB_REV = 0
CFLAGS = -O2 -DLINUX
LDFLAGS = -s
CC = gcc
MAKE_CLEAN = make clean
INSTDEB = install -m 0755 -o root -g root
INSTDOC = install -m 0644 -o root -g root
ROOTDIR = debian-tmp
CPRDIR = /usr/doc/copyright
CTRLDIR = /DEBIAN
EXECDIR = /usr/bin
INFODIR = /usr/info
LISPDIR = /usr/lib/emacs/site-lisp
MANDIR = /usr/man/man1
oldbuild: checkdir
$(MAKE)
touch build
oldclean: checkdir
$(MAKE_CLEAN)
-rm -rf $(ROOTDIR) *~ build
oldbinary: checkroot build
-rm -rf $(ROOTDIR)
$(INSTDEB) -d $(ROOTDIR)
$(INSTDEB) -d $(ROOTDIR)$(CTRLDIR)
$(INSTDEB) -d $(ROOTDIR)$(CPRDIR)
$(INSTDEB) -d $(ROOTDIR)$(EXECDIR)
$(INSTDEB) -d $(ROOTDIR)$(INFODIR)
$(INSTDEB) -d $(ROOTDIR)$(LISPDIR)
$(INSTDEB) -d $(ROOTDIR)$(MANDIR)
$(INSTDEB) ./debian.control $(ROOTDIR)$(CTRLDIR)/control
$(INSTDEB) ./debian.postinst $(ROOTDIR)$(CTRLDIR)/postinst
$(INSTDOC) ./debian.README $(ROOTDIR)$(CPRDIR)/$(PKG_ABRV).copyright
$(MAKE) install
gzip -9vf $(ROOTDIR)$(INFODIR)/$(PKG_ABRV).info
dpkg --build $(ROOTDIR)
mv $(ROOTDIR).deb ../$(PKG_NAME)-$(DEB_REV).deb
oldsource: checkdir clean
chmod +x debian.rules
cd ../ && \
tar cf $(PKG_NAME)-$(DEB_REV).tar $(PKG_NAME).debian && \
gzip -9vf $(PKG_NAME)-$(DEB_REV).tar
olfdiff: checkdir clean
cd ../ && \
(diff -ruN $(PKG_NAME) $(PKG_NAME).debian >$(PKG_NAME)-$(DEB_REV).diff; [ $$? = 1 ]) && \
gzip -9vf $(PKG_NAME)-$(DEB_REV).diff
oldcheckdir:
test -f debian.rules
oldcheckroot: checkdir
test root = "`whoami`"
|