[81311] trunk/dports/net

jmr at macports.org jmr at macports.org
Fri Jul 29 01:41:05 PDT 2011


Revision: 81311
          http://trac.macports.org/changeset/81311
Author:   jmr at macports.org
Date:     2011-07-29 01:41:04 -0700 (Fri, 29 Jul 2011)
Log Message:
-----------
squid, squid3: use add_users

Modified Paths:
--------------
    trunk/dports/net/squid/Portfile
    trunk/dports/net/squid3/Portfile

Modified: trunk/dports/net/squid/Portfile
===================================================================
--- trunk/dports/net/squid/Portfile	2011-07-29 08:17:25 UTC (rev 81310)
+++ trunk/dports/net/squid/Portfile	2011-07-29 08:41:04 UTC (rev 81311)
@@ -81,11 +81,8 @@
     "cd ${prefix}/var/squid" \
     "su -fm root -c \"exec ${prefix}/sbin/squid -k shutdown\""
 
-pre-destroot {
-    addgroup squid
-    set gid [existsgroup squid]
-    adduser squid gid=${gid} realname=Squid\ Proxy home=${prefix}/var/squid
-}
+add_users       squid group=squid home=${prefix}/var/squid
+
 post-destroot   {
     xinstall -o squid -g squid -m 755 -d \
         ${destroot}${prefix}/var/run/squid ${destroot}${prefix}/var/squid \

Modified: trunk/dports/net/squid3/Portfile
===================================================================
--- trunk/dports/net/squid3/Portfile	2011-07-29 08:17:25 UTC (rev 81310)
+++ trunk/dports/net/squid3/Portfile	2011-07-29 08:41:04 UTC (rev 81311)
@@ -85,11 +85,8 @@
     "cd ${prefix}/var/squid" \
     "su -fm root -c \"exec ${prefix}/sbin/squid -k shutdown\""
 
-pre-destroot {
-    addgroup squid
-    set gid [existsgroup squid]
-    adduser squid gid=${gid} realname=Squid\ Proxy home=${prefix}/var/squid
-}
+add_users       squid group=squid home=${prefix}/var/squid
+
 post-destroot   {
     xinstall -o squid -g squid -m 755 -d \
         ${destroot}${prefix}/var/run/squid ${destroot}${prefix}/var/squid \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110729/153cdb47/attachment.html>


More information about the macports-changes mailing list