summaryrefslogtreecommitdiff
path: root/news/nntpcache/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'news/nntpcache/patches/patch-ag')
-rw-r--r--news/nntpcache/patches/patch-ag24
1 files changed, 24 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: