summaryrefslogtreecommitdiff
path: root/news/nntpcache/patches
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-03-10 12:54:27 +0000
committerobache <obache@pkgsrc.org>2010-03-10 12:54:27 +0000
commit3080e859c31d4ce1ad937db1924ecb2a489a5d54 (patch)
tree8643b22404e1c2664c9363f31639f83deb94e6cb /news/nntpcache/patches
parentc46fba723285803846c137e53199d123d839bb72 (diff)
downloadpkgsrc-3080e859c31d4ce1ad937db1924ecb2a489a5d54.tar.gz
Add user-destdir installation support.
Diffstat (limited to 'news/nntpcache/patches')
-rw-r--r--news/nntpcache/patches/patch-ag24
-rw-r--r--news/nntpcache/patches/patch-ah15
-rw-r--r--news/nntpcache/patches/patch-ai20
-rw-r--r--news/nntpcache/patches/patch-aj19
-rw-r--r--news/nntpcache/patches/patch-ak19
-rw-r--r--news/nntpcache/patches/patch-al17
6 files changed, 114 insertions, 0 deletions
diff --git a/news/nntpcache/patches/patch-ag b/news/nntpcache/patches/patch-ag
new file mode 100644
index 00000000000..5fce3eab3eb
--- /dev/null
+++ b/news/nntpcache/patches/patch-ag
@@ -0,0 +1,24 @@
+$NetBSD: patch-ag,v 1.1 2010/03/10 12:54:27 obache Exp $
+
+pkgsrc take care permissons for directories and files.
+need to user-destdir installation.
+
+--- cf/Makefile.in.orig 2006-03-05 21:49:25.000000000 +0000
++++ cf/Makefile.in
+@@ -271,15 +271,11 @@ VERSION:
+ echo @VERSION@ >$@
+
+ install-data-hook:
+- for f in $(distf); do { cd $(sysconfdir) && (orig=`basename $$f -dist`; test -e $$orig || cp $$f $$orig) ;} done
++ for f in $(distf); do { cd $(DESTDIR)$(sysconfdir) && (orig=`basename $$f -dist`; test -e $$orig || cp $$f $$orig) ;} done
+
+ nntpcache.config-dist : nnconf.cf
+ sed -e 's/^ *[a-zA-Z_][a-zA-Z_]* //;s/"//g' <nnconf.cf >$@
+
+-# this is ugly, but more flexible than merely redefining INSTALL_DATA
+-install-data-local:
+- cd $(sysconfdir) && chmod 700 . && chown @nntpcacheUID@ . && chgrp @nntpcacheUID@ . && chmod 600 $(sysconf_DATA) && chown @nntpcacheUID@ $(sysconf_DATA) && chgrp @nntpcacheGID@ $(sysconf_DATA)
+- cd $(localstatedir) && chmod 700 . && chown @nntpcacheUID@ . && chgrp @nntpcacheUID@ . && chmod 600 $(localstate_DATA) && chown @nntpcacheUID@ $(localstate_DATA) && chgrp @nntpcacheGID@ $(localstate_DATA)
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/news/nntpcache/patches/patch-ah b/news/nntpcache/patches/patch-ah
new file mode 100644
index 00000000000..5e1c6653342
--- /dev/null
+++ b/news/nntpcache/patches/patch-ah
@@ -0,0 +1,15 @@
+$NetBSD: patch-ah,v 1.1 2010/03/10 12:54:27 obache Exp $
+
+destdir installation support
+
+--- src/Makefile.in.orig 2010-03-10 12:15:22.000000000 +0000
++++ src/Makefile.in
+@@ -454,7 +454,7 @@ uninstall-am: uninstall-info-am uninstal
+
+
+ install-exec-hook:
+- cp nntpcached $(libexecdir)/nntpcached.debug && chmod a+x $(libexecdir)/nntpcached.debug
++ cp nntpcached $(DESTDIR)$(libexecdir)/nntpcached.debug && chmod a+x $(DESTDIR)$(libexecdir)/nntpcached.debug
+
+ nnconf.c nnconf.h : ../cf/nnconf.cf
+ $(top_srcdir)/confused/confused $<
diff --git a/news/nntpcache/patches/patch-ai b/news/nntpcache/patches/patch-ai
new file mode 100644
index 00000000000..5483b24ada9
--- /dev/null
+++ b/news/nntpcache/patches/patch-ai
@@ -0,0 +1,20 @@
+$NetBSD: patch-ai,v 1.1 2010/03/10 12:54:27 obache Exp $
+
+pkgsrc take care permissons for directories and files.
+need to user-destdir installation.
+
+--- http/Makefile.in.orig 2010-03-10 12:20:48.000000000 +0000
++++ http/Makefile.in
+@@ -216,10 +216,8 @@ uninstall-am: uninstall-info-am
+
+
+ install-data-local:
+- -mkdir $(sysconfdir)/http
+- cp $(httpdata) $(sysconfdir)/http
+- cd $(sysconfdir)/http && chown @nntpcacheUID@ $(ch)
+- cd $(sysconfdir)/http && chgrp @nntpcacheUID@ $(ch)
++ -mkdir $(DESTDIR)$(sysconfdir)/http
++ cp $(httpdata) $(DESTDIR)$(sysconfdir)/http
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/news/nntpcache/patches/patch-aj b/news/nntpcache/patches/patch-aj
new file mode 100644
index 00000000000..5fef5a3988d
--- /dev/null
+++ b/news/nntpcache/patches/patch-aj
@@ -0,0 +1,19 @@
+$NetBSD: patch-aj,v 1.1 2010/03/10 12:54:27 obache Exp $
+
+pkgsrc take care permissons for directories and files.
+need to user-destdir installation.
+
+--- pgp/Makefile.in.orig 2010-03-10 12:26:40.000000000 +0000
++++ pgp/Makefile.in
+@@ -236,10 +236,9 @@ uninstall-am: uninstall-info-am uninstal
+
+ # the trailing slash is to force symlink transversal
+ install-data-local:
+- cd $(sysconfdir) && chmod 700 . && chown @nntpcacheUID@ . && chgrp @nntpcacheUID@ . && chmod 600 $(sysconf_DATA) && chown @nntpcacheUID@ $(sysconf_DATA) && chgrp @nntpcacheGID@ $(sysconf_DATA)
+
+ install-data-hook:
+- for f in $(sysconf_DATA); do { cd $(sysconfdir) && (orig=`basename $$f -dist`; test -e $$orig || cp $$f $$orig) ;} done
++ for f in $(sysconf_DATA); do { cd $(DESTDIR)$(sysconfdir) && (orig=`basename $$f -dist`; test -e $$orig || cp $$f $$orig) ;} done
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/news/nntpcache/patches/patch-ak b/news/nntpcache/patches/patch-ak
new file mode 100644
index 00000000000..60d6ca8eab1
--- /dev/null
+++ b/news/nntpcache/patches/patch-ak
@@ -0,0 +1,19 @@
+$NetBSD: patch-ak,v 1.1 2010/03/10 12:54:27 obache Exp $
+
+pkgsrc take care permissons for directories and files.
+need to user-destdir installation.
+
+--- innreport/Makefile.in.orig 2010-03-10 12:26:40.000000000 +0000
++++ innreport/Makefile.in
+@@ -265,10 +265,7 @@ uninstall-am: uninstall-info-am uninstal
+
+ # the trailing slash is to force symlink transversal
+ install-data-local:
+- cd $(sysconfdir) && chmod 700 . && chown @nntpcacheUID@ . && chgrp @nntpcacheUID@ . && chmod 600 $(sysconf_DATA) && chown @nntpcacheUID@ $(sysconf_DATA) && chgrp @nntpcacheGID@ $(sysconf_DATA)
+- -mkdir $(sysconfdir)/http $(sysconfdir)/http/innreport $(sysconfdir)/http/innreport/pics
+- chown @nntpcacheUID@ $(sysconfdir)/http $(sysconfdir)/http/innreport $(sysconfdir)/http/innreport/pics
+- chgrp @nntpcacheGID@ $(sysconfdir)/http $(sysconfdir)/http/innreport $(sysconfdir)/http/innreport/pics
++ -mkdir $(DESTDIR)$(sysconfdir)/http $(DESTDIR)$(sysconfdir)/http/innreport $(DESTDIR)$(sysconfdir)/http/innreport/pics
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/news/nntpcache/patches/patch-al b/news/nntpcache/patches/patch-al
new file mode 100644
index 00000000000..e8994e741d8
--- /dev/null
+++ b/news/nntpcache/patches/patch-al
@@ -0,0 +1,17 @@
+$NetBSD: patch-al,v 1.1 2010/03/10 12:54:27 obache Exp $
+
+pkgsrc take care permissons for directories and files.
+need to user-destdir installation.
+
+--- unixauth/Makefile.in.orig 2010-03-10 12:26:40.000000000 +0000
++++ unixauth/Makefile.in
+@@ -327,9 +327,6 @@ uninstall-am: uninstall-info-am uninstal
+
+
+ install-exec-hook:
+- chown root $(libexecdir)/unixauth
+- chgrp @nntpcacheGID@ $(libexecdir)/unixauth
+- chmod u+s,g+x,o-x $(libexecdir)/unixauth
+
+ %.ext : %.c %.h $(top_srcdir)/config.h $(top_srcdir)/scripts/genextern.sh
+ CPP="$(CPP)";export CPP; sh $(top_srcdir)/scripts/genextern.sh $< > $@.tmp $(DEFS) $(INCLUDES) $(CPPFLAGS) && mv -f $@.tmp $@ || rm -f $@.tmp