[30497] trunk/dports/mail/vm-pop3d/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 29 09:45:45 PDT 2007


Revision: 30497
          http://trac.macosforge.org/projects/macports/changeset/30497
Author:   markd at macports.org
Date:     2007-10-29 09:45:44 -0700 (Mon, 29 Oct 2007)

Log Message:
-----------
Change the startupitem type to executable.

Modified Paths:
--------------
    trunk/dports/mail/vm-pop3d/Portfile

Modified: trunk/dports/mail/vm-pop3d/Portfile
===================================================================
--- trunk/dports/mail/vm-pop3d/Portfile	2007-10-29 13:35:08 UTC (rev 30496)
+++ trunk/dports/mail/vm-pop3d/Portfile	2007-10-29 16:45:44 UTC (rev 30497)
@@ -4,9 +4,9 @@
 
 name				vm-pop3d  
 version				1.1.6
-revision			2
+revision			3
 categories			mail
-maintainers			markd at macports.org
+maintainers			markd
 platforms			darwin
 
 description			POP3 server for Postfix that supports virtual domains and mailboxes
@@ -16,26 +16,20 @@
 				Unix accounts.
 
 homepage			http://www.reedmedia.net/software/virtualmail-pop3d/
-					
 master_sites		        http://www.ibiblio.org/pub/Linux/system/mail/pop/ \
 				ftp://sunsite.unc.edu/pub/Linux/system/mail/pop/
-
+#patchfiles			patch-vm-pop3d.init
 checksums			md5 0399cc06f5329a6eaebec05d959a6ec1
-
-patchfiles                      patch-vm-pop3d.init
-
 destroot.destdir		prefix=${destroot}${prefix}
 
 depends_lib			port:postfix
 
 configure.args			--enable-virtual
 
-
 variant server {
-
-    startupitem.create    yes
-    startupitem.start "${prefix}/share/${name}/vm-pop3d.init start"
-    startupitem.stop "${prefix}/share/${name}/vm-pop3d.init stop"
+    startupitem.create      yes
+    startupitem.name        ${name}
+    startupitem.executable  ${prefix}/sbin/vm-pop3d --user postfix --group postfix -d 10 -t 600
 }
 
 pre-configure {
@@ -59,14 +53,15 @@
 	system "chown postfix:postfix ${destroot}${prefix}/var/${name}/spool"
 
 # Create lock file path
-	xinstall -m 755 -d ${destroot}${prefix}/var/${name}/lock
+#	xinstall -m 755 -d ${destroot}${prefix}/var/${name}/lock
 
 # Keep the empty virtual spool and passwd file paths
 destroot.keepdirs \
         ${destroot}${prefix}/var/${name}/spool \
-        ${destroot}${prefix}/var/${name}/lock \
 	${destroot}${prefix}/etc/${name}
+#	${destroot}${prefix}/var/${name}/lock
 
+
 # Install documentation type stuff
 	xinstall -d ${destroot}${prefix}/share/doc/${name}
 	xinstall -m 644 ${worksrcpath}/AUTHORS ${destroot}${prefix}/share/doc/${name}
@@ -78,21 +73,16 @@
 	xinstall -m 644 ${worksrcpath}/TODO ${destroot}${prefix}/share/doc/${name}
 
 # Fix and copy the init script
-	reinplace "s|daemon vm-pop3d|${prefix}/sbin/vm-pop3d --user postfix --group postfix|g" \
-                "${worksrcpath}/vm-pop3d.init"
-
-	reinplace "s|/usr/local/sbin|${prefix}/sbin|g" \
-                "${worksrcpath}/vm-pop3d.init"
-
-	reinplace "s|/var/lock/subsys|${prefix}/var/${name}/lock|g" \
-                "${worksrcpath}/vm-pop3d.init"
-
-	reinplace "s|/etc/rc.d/init.d/functions|/etc/rc.common|g" \
-		"${worksrcpath}/vm-pop3d.init"
-
-	xinstall -d -m 755  ${destroot}${prefix}/share/${name}
-	
-	xinstall -m 755 ${worksrcpath}/vm-pop3d.init ${destroot}${prefix}/share/${name}
+#	reinplace "s|daemon vm-pop3d|${prefix}/sbin/vm-pop3d --user postfix --group postfix|g" \
+#               "${worksrcpath}/vm-pop3d.init"
+#	reinplace "s|/usr/local/sbin|${prefix}/sbin|g" \
+#                "${worksrcpath}/vm-pop3d.init"
+#	reinplace "s|/var/lock/subsys|${prefix}/var/${name}/lock|g" \
+#                "${worksrcpath}/vm-pop3d.init"
+#	reinplace "s|/etc/rc.d/init.d/functions|/etc/rc.common|g" \
+#		"${worksrcpath}/vm-pop3d.init"
+#	xinstall -d -m 755  ${destroot}${prefix}/share/${name}
+#	xinstall -m 755 ${worksrcpath}/vm-pop3d.init ${destroot}${prefix}/share/${name}
 }
 
 post-activate {
@@ -179,8 +169,8 @@
    OS X 10.3 and previous - A startup item was created in /Library/StartupItems
         Add \"VMPOP-3D=-YES-\" to the /etc/hostconfig file to run vm-pop3d at system boot
 
-   Start vm-pop3d manually:
-	sudo ${prefix}/share/vm-pop3d/vm-pop3d.init start (stop|status)
+   If you didn't install vm-pop3d using the +server variant, and you wish to start vm-pop3d manually:
+	sudo ${prefix}/share/sbin/vm-pop3d --user postfix --group postfix -d 10 -t 600
 
 	telnet localhost 110  (response ->)  +OK POP3 Welcome to vm-pop3d 1.x.x
 	USER <user at domain>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071029/bac728ac/attachment.html


More information about the macports-changes mailing list