[45009] trunk/dports/net/whois

ryandesign at macports.org ryandesign at macports.org
Tue Jan 6 03:43:19 PST 2009


Revision: 45009
          http://trac.macports.org/changeset/45009
Author:   ryandesign at macports.org
Date:     2009-01-06 03:43:15 -0800 (Tue, 06 Jan 2009)
Log Message:
-----------
whois:

 * update to 4.7.30
 * locales now actually work
 * install a sample config file in ${prefix}/etc/whois.conf.sample

Modified Paths:
--------------
    trunk/dports/net/whois/Portfile
    trunk/dports/net/whois/files/patch-lcrypt.diff

Removed Paths:
-------------
    trunk/dports/net/whois/files/patch-nls.diff

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2009-01-06 08:52:11 UTC (rev 45008)
+++ trunk/dports/net/whois/Portfile	2009-01-06 11:43:15 UTC (rev 45009)
@@ -11,8 +11,7 @@
 PortSystem              1.0
 
 name                    whois
-version                 4.7.28
-revision                1
+version                 4.7.30
 categories              net
 maintainers             ryandesign
 homepage                http://www.linux.it/~md/software/
@@ -30,9 +29,9 @@
     http://ftp.debian.org/debian/pool/main/w/${name}/
 
 checksums \
-    md5 90b8f4014d7e2249b74ac0cc56de2360 \
-    sha1 22b29d24e511114be0b5ffded325dedf3d9beaa6 \
-    rmd160 988fd7ddd0d5ff5ad5451a1f6fa211c5d075a310
+    md5     0667190491a5a9ded8595b8e330dcc11 \
+    sha1    049a8946a62d95d00ca1cafe928a064119237cb0 \
+    rmd160  a311c17d19fa8d062379144f9051e22952521262
 
 distname                ${name}_${version}
 worksrcdir              ${name}-${version}
@@ -40,33 +39,48 @@
 depends_lib \
     port:gettext
 
-patchfiles \
-    patch-nls.diff
-
 platform darwin {
     # -lcrypt cannot be used (and is unnecessary) on Mac OS X
     patchfiles-append \
         patch-lcrypt.diff
 }
 
-use_configure           no
+configure.cmd           true
 
+configure.cflags-append \
+    -DENABLE_NLS
+
+configure.ldflags-append \
+    -lintl
+
 post-configure {
-    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
-    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/config.h
-    reinplace "s|\$(BASEDIR)/usr|${destroot}${prefix}|g" \
-        ${worksrcpath}/po/Makefile
     reinplace "s|/etc/whois.conf|${prefix}/etc/whois.conf|g" \
         ${worksrcpath}/whois.1
 }
 
+build.target-append     pos
 build.env \
     CC=${configure.cc} \
-    CFLAGS="-DENABLE_NLS -I${prefix}/include" \
-    LDFLAGS="-L${prefix}/lib -lintl"
+    CONFIG_FILE=${prefix}/etc/whois.conf \
+    LOCALEDIR=${prefix}/share/locale
+build.args \
+    prefix=${prefix} \
+    INCLUDES="${configure.cflags} ${configure.cppflags}" \
+    LIBS="${configure.ldflags}"
 
+destroot.target-append  install-pos
 destroot.args           prefix=${destroot}${prefix}
+post-destroot {
+    xinstall -m 644 -W ${worksrcpath} whois.conf ${destroot}${prefix}/etc/whois.conf.sample
+}
 
+post-activate {
+    if {![file exists ${prefix}/etc/whois.conf]} {
+        ui_msg "To customize which whois servers get used, you can copy whois.conf.sample"
+        ui_msg "to whois.conf in ${prefix}/etc and then make changes."
+    }
+}
+
 livecheck.check         regex
 livecheck.url           [lindex ${master_sites} 0]?C=M&O=D
 livecheck.regex         "${name}_(.+?)${extract.suffix}"

Modified: trunk/dports/net/whois/files/patch-lcrypt.diff
===================================================================
--- trunk/dports/net/whois/files/patch-lcrypt.diff	2009-01-06 08:52:11 UTC (rev 45008)
+++ trunk/dports/net/whois/files/patch-lcrypt.diff	2009-01-06 11:43:15 UTC (rev 45009)
@@ -1,6 +1,6 @@
---- Makefile	2008-05-06 04:41:16.000000000 -0500
-+++ Makefile	2008-07-20 01:18:24.000000000 -0500
-@@ -27,8 +27,6 @@
+--- Makefile	2008-12-08 18:46:06.000000000 -0600
++++ Makefile	2009-01-06 05:35:23.000000000 -0600
+@@ -32,8 +32,6 @@
  ifdef HAVE_XCRYPT
  mkpasswd_LDADD += -lxcrypt
  DEFS += -DHAVE_XCRYPT

Deleted: trunk/dports/net/whois/files/patch-nls.diff
===================================================================
--- trunk/dports/net/whois/files/patch-nls.diff	2009-01-06 08:52:11 UTC (rev 45008)
+++ trunk/dports/net/whois/files/patch-nls.diff	2009-01-06 11:43:15 UTC (rev 45009)
@@ -1,22 +0,0 @@
---- Makefile	2008-05-06 04:41:16.000000000 -0500
-+++ Makefile	2008-11-12 00:53:51.000000000 -0600
-@@ -31,7 +31,7 @@
- mkpasswd_LDADD += -lcrypt
- endif
- 
--all: Makefile.depend whois mkpasswd #pos
-+all: Makefile.depend whois mkpasswd pos
- 
- whois_OBJECTS := whois.o utils.o
- mkpasswd_OBJECTS := mkpasswd.o utils.o
---- po/Makefile	2008-11-12 00:57:45.000000000 -0600
-+++ po/Makefile	2008-11-12 00:58:46.000000000 -0600
-@@ -40,7 +40,7 @@
- distclean: clean
- 	rm -f whois.pot
- 
--install: $(CATALOGS)
-+install-pos: $(CATALOGS)
- 	for n in $(CATALOGS); do \
- 	    l=`basename $$n .mo`; \
- 	    $(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l; \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090106/e67d6e5b/attachment.html>


More information about the macports-changes mailing list