[101786] trunk/dports/irc/ngircd

larryv at macports.org larryv at macports.org
Sat Jan 19 02:50:37 PST 2013


Revision: 101786
          https://trac.macports.org/changeset/101786
Author:   larryv at macports.org
Date:     2013-01-19 02:50:37 -0800 (Sat, 19 Jan 2013)
Log Message:
-----------
ngircd: Update to 20.1; add license.

Also:
- Add dependency on tcp_wrappers, which OS X 10.8 doesn't seem to provide.
- Add dependency on zlib, which is opportunistically linked to.
- Specify docdir explicitly to ensure that ${name} is used.
- Remove ZeroConf option, which was dropped in version 17.
- Create startup item instead of using the provided launchd plist.
- Install default conf file manually in post-activate.

Modified Paths:
--------------
    trunk/dports/irc/ngircd/Portfile
    trunk/dports/irc/ngircd/files/patch-doc-Makefile.in.diff

Added Paths:
-----------
    trunk/dports/irc/ngircd/files/patch-contrib-MacOSX-Makefile.in.diff

Modified: trunk/dports/irc/ngircd/Portfile
===================================================================
--- trunk/dports/irc/ngircd/Portfile	2013-01-19 07:38:44 UTC (rev 101785)
+++ trunk/dports/irc/ngircd/Portfile	2013-01-19 10:50:37 UTC (rev 101786)
@@ -4,10 +4,10 @@
 PortSystem          1.0
 
 name                ngircd
-version             16
-revision            1
+version             20.1
 categories          irc
 platforms           darwin
+license             GPL-2+
 maintainers         nomaintainer
 
 description         next generation IRC daemon
@@ -16,26 +16,41 @@
                     not based upon the original IRCd like many others.
 
 homepage            http://ngircd.barton.de/
-master_sites        ftp://ftp.berlios.de/pub/ngircd/ \
-                    ftp://ngircd.barton.de/pub/ngircd/
+master_sites        http://ngircd.barton.de/pub/ngircd/ \
+                    ftp://ftp.berlios.de/pub/ngircd/
 
-checksums           md5     8c9e0382cd982b0ca77c05528ebe28eb \
-                    sha1    b6903448edacf01e67d6246bff5ff9b5206e6422 \
-                    rmd160  e118b23a8e53fada64e632b148129cd9ce6dc69a
+checksums           rmd160  6dee9a1a83ee3951e73f0fc0fd745a0afa771b09 \
+                    sha256  bd5b8117e49dc72604f38097e81eb8231270bb608f7360ccaf8bcad055342646
 
-depends_lib         port:libident
+depends_lib         port:libident \
+                    port:tcp_wrappers \
+                    port:zlib
 
 # libident is not universal
 universal_variant   no
 
-patchfiles          patch-doc-Makefile.in.diff
+patchfiles          patch-contrib-MacOSX-Makefile.in.diff \
+                    patch-doc-Makefile.in.diff
 
-configure.args      --mandir=${prefix}/share/man \
+configure.args      --docdir=${prefix}/share/doc/${name} \
                     --enable-ipv6 \
                     --with-tcp-wrappers \
-                    --with-zeroconf \
                     --with-ident
 
+# It's easier to create our own startup item than to patch and install
+# the provided plist.
+startupitem.create      yes
+startupitem.executable  ${prefix}/sbin/ngircd --nodaemon
+startupitem.logfile     ${prefix}/var/log/ngIRCd.log
+startupitem.logevents   yes
+
+post-activate {
+    if {![file exists ${prefix}/etc/ngircd.conf]} {
+        xinstall -m 0644 ${prefix}/share/doc/${name}/sample-ngircd.conf \
+            ${prefix}/etc/ngircd.conf
+    }
+}
+
 variant gnutls conflicts openssl description {Build with GnuTLS} {
     configure.args-append   --with-gnutls
     depends_lib-append      port:gnutls

Added: trunk/dports/irc/ngircd/files/patch-contrib-MacOSX-Makefile.in.diff
===================================================================
--- trunk/dports/irc/ngircd/files/patch-contrib-MacOSX-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/irc/ngircd/files/patch-contrib-MacOSX-Makefile.in.diff	2013-01-19 10:50:37 UTC (rev 101786)
@@ -0,0 +1,10 @@
+--- contrib/MacOSX/Makefile.in.orig	2013-01-02 16:38:50.000000000 -0500
++++ contrib/MacOSX/Makefile.in	2013-01-19 04:25:53.000000000 -0500
+@@ -553,7 +553,6 @@
+ 	    <$< >$@
+ 
+ install-data-local:
+-	[ `uname -s` != "Darwin" ] || make install-sys-darwin
+ 
+ install-sys-darwin:
+ 	@if [ `id -u` -eq 0 ]; then \

Modified: trunk/dports/irc/ngircd/files/patch-doc-Makefile.in.diff
===================================================================
--- trunk/dports/irc/ngircd/files/patch-doc-Makefile.in.diff	2013-01-19 07:38:44 UTC (rev 101785)
+++ trunk/dports/irc/ngircd/files/patch-doc-Makefile.in.diff	2013-01-19 10:50:37 UTC (rev 101786)
@@ -1,11 +1,13 @@
---- doc/Makefile.in.orig	2010-05-02 06:33:06.000000000 -0500
-+++ doc/Makefile.in	2010-09-01 02:56:03.000000000 -0500
-@@ -493,7 +493,7 @@
- install-data-hook:
- 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- 	if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
--	  $(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
-+	  $(INSTALL) -m 644 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf.sample; \
- 	 fi
+--- doc/Makefile.in.orig	2013-01-02 16:38:51.000000000 -0500
++++ doc/Makefile.in	2013-01-18 05:12:23.000000000 -0500
+@@ -584,10 +584,6 @@
+ all: $(generated_docs)
+ 
+ install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
+-	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+-	@if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
+-	  make install-config; \
+-	 fi
  	$(mkinstalldirs) $(DESTDIR)$(docdir)
- 	for f in $(documents); do \
+ 	for f in $(static_docs) $(toplevel_docs); do \
+ 	  $(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130119/7b4cf149/attachment-0001.html>


More information about the macports-changes mailing list