summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-19 20:47:55 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-19 21:28:21 -0700
commit50ca5b27f2f7c51d062b3a89d334f7243f467078 (patch)
tree3af98da9dd271527231241fa5b5dc43055bc0c14 /debian/rules
parent0664966ad710d299c3ab43a8fe06d141306a0e68 (diff)
upgrade(new git snapshot): Ack NMUs and refresh fromn github
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules15
1 files changed, 11 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index a70d8c6..a4abf3d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,8 +23,8 @@ PAT_EXEC = patcil patdiff patbase patlog patmake patsend \
patnotify patpost patftp patname patsnap patcol \
patclean patindex
-DPKG_ARCH := dpkg-architecture
-export DEB_HOST_MULTIARCH := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_MULTIARCH)
+# For DEB_HOST_MULTIARCH
+include /usr/share/dpkg/architecture.mk
%:
dh $@
@@ -35,15 +35,19 @@ override_dh_auto_configure:
touch .config/nomail && \
sh ./Configure \
-de \
- -D prefix=$(PREFIX) \
+ -D prefix=/usr \
-D orgname=/etc/news/organization \
-D myhostname=localhost \
-D mydomain=localdomain \
-D defeditor=/usr/ae \
- -D privlib=/usr/share/$(package) \
+ -D privlib=/usr/share/$(package) \
-D pager=/bin/more \
-D mansrc=/usr/share/man/ \
-D cf_email='$(email)' \
+ -D grep=/bin/grep \
+ -D sed=/bin/sed \
+ -D cat=/bin/cat \
+ -D zcat=/bin/zcat \
-D d_berknames='define'
@@ -57,6 +61,9 @@ override_dh_auto_build:
override_dh_install:
test -d $(MAN1DIR) || $(make_directory) $(MAN1DIR)
$(MAKE) install
+ for script in $(TMPTOP)/usr/bin/*; do \
+ test `head -1 $$script` = '#!/usr/bin/perl' && perl -c $$script ;\
+ done
$(MAKE) install.man
$(make_directory) $(MAN7DIR)
(cd $(MAN1DIR); for file in $(PAT_EXEC) ; do \