summaryrefslogtreecommitdiff
path: root/www/privoxy/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-09-24 14:08:36 +0000
committertv <tv@pkgsrc.org>2004-09-24 14:08:36 +0000
commit5d6b05eddaaea6842124e62a460f845d4ea656c3 (patch)
treecc506eb03228be4ba30475bb476bd212423d82fb /www/privoxy/patches
parentd6936f8377e878914bba7fd09292bdb301ee7f0b (diff)
downloadpkgsrc-5d6b05eddaaea6842124e62a460f845d4ea656c3.tar.gz
There's no need for a privoxy-user prerequisite package. The build of
privoxy actually doesn't require the userid to exist at all. Simply whack the validity checks from configure.in, move PKG_USERS/PKG_GROUPS to the main privoxy package, and all works fine. (Similar to the modifications originally needed for Mailman, but in that case, the numeric user IDs were also embedded in the binaries. Fortunately, that is not the case here.)
Diffstat (limited to 'www/privoxy/patches')
-rw-r--r--www/privoxy/patches/patch-ac62
1 files changed, 62 insertions, 0 deletions
diff --git a/www/privoxy/patches/patch-ac b/www/privoxy/patches/patch-ac
new file mode 100644
index 00000000000..542fef55535
--- /dev/null
+++ b/www/privoxy/patches/patch-ac
@@ -0,0 +1,62 @@
+$NetBSD: patch-ac,v 1.1 2004/09/24 14:08:36 tv Exp $
+
+--- configure.in.orig 2004-01-30 04:26:03.000000000 -0500
++++ configure.in
+@@ -563,29 +563,12 @@ if test "$EMXOS2" = yes; then
+
+ else
+
+- $ID privoxy >/dev/null 2>/dev/null
+- if test $? -ne 0 ; then
+- AC_MSG_WARN(There is no user 'privoxy' on this system)
+- fi
+ AC_MSG_CHECKING([for user])
+ AC_ARG_WITH(user,
+ [ --with-user=privoxy Set user under which privoxy will run],
+ [
+- if test "x$withval" != "xyes"; then
+- if test $ID = no ; then
+- AC_MSG_ERROR(There is no 'id' program on this system)
+- else
+ AC_MSG_RESULT($with_user)
+- $ID $with_user 2>/dev/null >/dev/null
+- if test $? -eq 0 ; then
+ USER=$with_user;
+- else
+- AC_MSG_ERROR(There is no user '$with_user' on this system)
+- fi
+- fi
+- else
+- AC_MSG_ERROR(We need a user if you give me this parameter)
+- fi
+ ],
+ [
+ if test $ID = no ; then
+@@ -602,27 +585,8 @@ else
+ AC_ARG_WITH(group,
+ [ --with-group=privoxy Set group for privoxy],
+ [
+- if test "x$withval" != "xyes"; then
+- if test $BGROUPS = no ; then
+- AC_MSG_ERROR(There is no 'groups' program on this system)
+- else
+ AC_MSG_RESULT($with_group)
+- $BGROUPS $USER >/dev/null
+- if test $? -eq 0 ; then
+- # FIXME: this fails if valid group, but not first group
+- # listed.
+- if test "$with_group" != "`$BGROUPS $USER | sed 's/.*: //' 2>/dev/null |$AWK '{print $1}'`" ; then
+- AC_MSG_ERROR(The given value '$withval' does not match group entry)
+- else
+ GROUP=$with_group;
+- fi
+- else
+- AC_MSG_ERROR(There is no group entry for user '$USER')
+- fi
+- fi
+- else
+- AC_MSG_ERROR(We need a group if you give me this parameter)
+- fi
+ ],
+ [
+ if test $BGROUPS = no ; then