[48839] trunk/dports/net/aiccu
raimue at macports.org
raimue at macports.org
Sun Mar 29 18:23:36 PDT 2009
Revision: 48839
http://trac.macports.org/changeset/48839
Author: raimue at macports.org
Date: 2009-03-29 18:23:36 -0700 (Sun, 29 Mar 2009)
Log Message:
-----------
net/aiccu:
Maintainer update, closes #19042
Modified Paths:
--------------
trunk/dports/net/aiccu/Portfile
Added Paths:
-----------
trunk/dports/net/aiccu/files/aiccu_conf.patch
trunk/dports/net/aiccu/files/gnutls.patch
Modified: trunk/dports/net/aiccu/Portfile
===================================================================
--- trunk/dports/net/aiccu/Portfile 2009-03-30 01:15:04 UTC (rev 48838)
+++ trunk/dports/net/aiccu/Portfile 2009-03-30 01:23:36 UTC (rev 48839)
@@ -5,7 +5,7 @@
name aiccu
version 20070115
-revision 1
+revision 2
categories net ipv6
platforms darwin
maintainers 23bit.net:cr
@@ -34,7 +34,7 @@
set conf_file ${prefix}/etc/aiccu.conf
worksrcdir aiccu
-patchfiles Makefile.patch
+patchfiles Makefile.patch aiccu_conf.patch
pre-configure {
reinplace "s|#pidfile /var/run/aiccu.pid|pidfile ${pid_file}|" \
@@ -42,6 +42,8 @@
}
use_configure no
+build.args-append MPPREFIX=${prefix}
+
destroot.args DESTDIR=${destroot}${prefix}
destroot.destdir ${destroot}${prefix}
@@ -52,3 +54,8 @@
startupitem.stop "${prefix}/sbin/aiccu stop ${conf_file}"
startupitem.netchange yes
+variant gnutls description {TIC server transport encryption} {
+ depends_lib-append port:gnutls
+ patchfiles-append gnutls.patch
+}
+
Added: trunk/dports/net/aiccu/files/aiccu_conf.patch
===================================================================
--- trunk/dports/net/aiccu/files/aiccu_conf.patch (rev 0)
+++ trunk/dports/net/aiccu/files/aiccu_conf.patch 2009-03-30 01:23:36 UTC (rev 48839)
@@ -0,0 +1,23 @@
+--- common/aiccu.h.orig 2009-03-29 18:05:03.000000000 +0200
++++ common/aiccu.h 2009-03-29 18:07:00.000000000 +0200
+@@ -75,7 +75,8 @@
+ /* GetWindowsDirectory() is used to figure out the directory to store the config */
+ #define AICCU_CONFIG "aiccu.conf"
+ #else
+-#define AICCU_CONFIG "/etc/aiccu.conf"
++#define as_string(x) #x
++#define AICCU_CONFIG MPPREFIX "/etc/aiccu.conf"
+ #endif
+
+ /* Inbound listen queue */
+--- unix-console/Makefile.orig 2009-03-29 18:28:01.000000000 +0200
++++ unix-console/Makefile 2009-03-29 18:29:03.000000000 +0200
+@@ -115,7 +115,7 @@
+
+ # Darwin
+ ifeq ($(shell uname | grep -c "Darwin"),1)
+-CFLAGS += -D_DARWIN -D NEED_IFHEAD -D AICCU_TYPE="\"darwin\""
++CFLAGS += -D_DARWIN -D NEED_IFHEAD -D AICCU_TYPE="\"darwin\"" -D MPPREFIX="\"${MPPREFIX}\""
+ SRCS += ../common/aiccu_darwin.c
+ OBJS += ../common/aiccu_darwin.o
+ LDFLAGS += -lresolv
Added: trunk/dports/net/aiccu/files/gnutls.patch
===================================================================
--- trunk/dports/net/aiccu/files/gnutls.patch (rev 0)
+++ trunk/dports/net/aiccu/files/gnutls.patch 2009-03-30 01:23:36 UTC (rev 48839)
@@ -0,0 +1,25 @@
+--- Makefile.orig 2009-03-29 16:25:59.000000000 +0200
++++ Makefile 2009-03-29 16:28:07.000000000 +0200
+@@ -57,6 +57,7 @@
+ export dirdoc
+ export RPM_OPT_FLAGS
+ export CFLAGS
++export MPPREFIX
+
+ ####################
+ ## Makefile Targets
+--- unix-console/Makefile.orig 2009-03-29 16:31:22.000000000 +0200
++++ unix-console/Makefile 2009-03-29 16:31:45.000000000 +0200
+@@ -44,6 +44,12 @@
+ CFLAGS += -D AICCU_GNUTLS
+ LDFLAGS += -lgnutls
+ endif
++ifeq ($(shell uname | grep -c "Darwin"),1)
++CFLAGS += -D AICCU_GNUTLS
++CFLAGS += -I${MPPREFIX}/include
++LDFLAGS += -lgnutls
++LDFLAGS += -L${MPPREFIX}/lib
++endif
+
+ # Linux
+ ifeq ($(shell uname | grep -c "Linux"),1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090329/7a3b4fce/attachment.html>
More information about the macports-changes
mailing list