[78764] users/cal
cal at macports.org
cal at macports.org
Sat May 21 08:48:51 PDT 2011
Revision: 78764
http://trac.macports.org/changeset/78764
Author: cal at macports.org
Date: 2011-05-21 08:48:51 -0700 (Sat, 21 May 2011)
Log Message:
-----------
Personal Ports, ntop, x2goclient (experimental!)
Added Paths:
-----------
users/cal/aqua/
users/cal/aqua/x2goclient/
users/cal/aqua/x2goclient/Portfile
users/cal/net/
users/cal/net/ntop/
users/cal/net/ntop/Portfile
users/cal/net/ntop/files/
users/cal/net/ntop/files/ntop.sh
users/cal/net/ntop/files/patch-Makefile.am.diff
users/cal/net/ntop/files/patch-external-geoip.diff
users/cal/net/nxcomp/
users/cal/net/nxcomp/Portfile
users/cal/net/nxproxy/
users/cal/net/nxproxy/Portfile
Added: users/cal/aqua/x2goclient/Portfile
===================================================================
--- users/cal/aqua/x2goclient/Portfile (rev 0)
+++ users/cal/aqua/x2goclient/Portfile 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,66 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup qt4 1.0
+
+name x2goclient
+version 3.0.1.18
+
+categories aqua net
+platforms macosx
+license GPL-2+
+
+maintainers cal openmaintainer
+
+description vnc-like remote desktop software
+long_description x2go is based on the (now closed source) NX libraries which provide \
+ terminal server services.
+
+homepage http://www.x2go.org/
+master_sites http://code.x2go.org/releases/source/${name}/
+distname ${name}_${version}
+checksums md5 b6ce5309d7ee55fc36154cf2dd7d84b8 \
+ sha1 367eeb26783063232e3b730211c847f108a22aca \
+ rmd160 248d444d7ab77d067c0dee670d6721b9aeb6abd6
+
+universal_variant yes
+supported_archs ppc i386 x86_64
+
+depends_build port:qt4-mac
+depends_lib port:qt4-mac \
+ port:nxproxy \
+ port:libssh
+
+configure.cmd ${qt_qmake_cmd}
+configure.pre_args PREFIX=${prefix}
+configure.universal_args-delete \
+ --disable-dependency-tracking
+configure.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++
+
+pre-configure {
+ ln -s ${name}/xsettingsui.ui ${worksrcpath}
+ ln -s ${name}/xsettingswidget.cpp ${worksrcpath}
+ ln -s ${name}/xsettingswidget.h ${worksrcpath}
+}
+
+build.env-append QMAKESPEC=${qt_mkspecs_dir}/macx-g++
+if {[variant_isset universal]} {
+ build.args-append CXXFLAGS="${configure.cxxflags} ${configure.universal_cxxflags}" \
+ CFLAGS="${configure.cflags} ${configure.universal_cflags}" \
+ CPPFLAGS="${configure.cppflags} ${configure.universal_cppflags}" \
+ LFLAGS="${configure.ldflags} ${configure.universal_ldflags}"
+} else {
+ build.args-append CXXFLAGS="${configure.cxxflags}" \
+ CFLAGS="${configure.cflags}" \
+ CPPFLAGS="${configure.cppflags}" \
+ LFLAGS="${configure.ldflags}"
+}
+build.args-append CC="${configure.cc}" \
+ CXX="${configure.cxx}" \
+ CPP="${configure.cpp}"
+
+destroot {
+ copy ${worksrcpath}/${name}.app ${destroot}${applications_dir}
+}
+
Property changes on: users/cal/aqua/x2goclient/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/cal/net/ntop/Portfile
===================================================================
--- users/cal/net/ntop/Portfile (rev 0)
+++ users/cal/net/ntop/Portfile 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,70 @@
+# $Id$
+
+PortSystem 1.0
+
+name ntop
+version 4.0.1
+categories net
+maintainers markd openmaintainer
+description network traffic probe
+platforms darwin
+long_description ntop is a network traffic probe that shows the network \
+ usage, similar to what the popular top Unix command does.
+
+homepage http://www.ntop.org/
+master_sites sourceforge
+checksums sha1 515fbb66f224d0b8292f3299723965f49325dd91 \
+ rmd160 f2c72578df5fff2e64278003a0754f67afe56e15
+
+patchfiles patch-external-geoip.diff \
+ patch-Makefile.am.diff
+
+depends_build port:gawk \
+ port:wget \
+ port:rrdtool \
+ port:libevent
+depends_lib port:libpcap \
+ port:gd2 \
+ port:libpng \
+ port:gdbm \
+ port:libgeoip
+
+configure.cflags-append -I${prefix}/include
+configure.args --mandir=${prefix}/share/man \
+ --with-localedir=${prefix}/share/locale \
+ --with-rrd-home=${prefix}
+
+use_autoconf yes
+build.type gnu
+
+# Create a startupitem to start/stop the server
+ startupitem.create yes
+ startupitem.start "${prefix}/share/${name}/ntop.sh"
+ startupitem.stop "${prefix}/share/${name}/ntop.sh"
+
+pre-configure {
+ system "cd ${worksrcpath} && ./autogen.sh --noconfig"
+}
+
+post-destroot {
+ xinstall -m 755 -o nobody -d ${destroot}${prefix}/var/ntop \
+ ${destroot}${prefix}/var/ntop/rrd
+ system "cd ${destroot}${prefix}/var/ntop && \
+ touch addressQueue.db dnsCache.db macPrefix.db \
+ ntop_pw.db prefsCache.db rrd/.turd"
+ system "chown -R nobody ${destroot}${prefix}/var/ntop"
+
+ xinstall -m 755 -d ${destroot}${prefix}/etc/ntop
+ xinstall -m 755 \
+ ${worksrcpath}/packages/FreeBSD-ports/net/ntop/files/ntop.conf.sample \
+ ${destroot}${prefix}/etc/ntop/ntop.conf
+ reinplace "s|%%DBDIR%%/ntop|${prefix}/var/ntop|g" \
+ ${destroot}${prefix}/etc/ntop/ntop.conf
+ reinplace "s|#--interface sis0|--interface en0|g" \
+ ${destroot}${prefix}/etc/ntop/ntop.conf
+
+ xinstall -m 755 ${portpath}/${filesdir}/ntop.sh \
+ ${destroot}${prefix}/share/ntop/ntop.sh
+ reinplace "s|__PREFIX__|${prefix}|g" \
+ ${destroot}${prefix}/share/ntop/ntop.sh
+}
Property changes on: users/cal/net/ntop/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/cal/net/ntop/files/ntop.sh
===================================================================
--- users/cal/net/ntop/files/ntop.sh (rev 0)
+++ users/cal/net/ntop/files/ntop.sh 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,5 @@
+#!/bin/sh
+echo ntop will start in 60s
+sleep 60
+__PREFIX__/bin/ntop @__PREFIX__/etc/ntop/ntop.conf -d
+
Added: users/cal/net/ntop/files/patch-Makefile.am.diff
===================================================================
--- users/cal/net/ntop/files/patch-Makefile.am.diff (rev 0)
+++ users/cal/net/ntop/files/patch-Makefile.am.diff 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,13 @@
++++ Makefile.am 2009-09-15 13:07:19.000000000 -0300
+--- Makefile.am 2009-04-17 17:27:57.000000000 -0300
+@@ -74,9 +74,7 @@
+ NTOPDATA = ntop-cert.pem \
+ $(ETTER_PASSIVE) \
+ oui.txt.gz \
+- specialMAC.txt.gz \
+- GeoIPASNum.dat \
+- GeoLiteCity.dat
++ specialMAC.txt.gz
+
+ NTOPHTML = html html/*.js html/*.html html/*.gif html/*.jpg html/*.ico html/*.png \
+ html/*.css html/*.dtd \
Added: users/cal/net/ntop/files/patch-external-geoip.diff
===================================================================
--- users/cal/net/ntop/files/patch-external-geoip.diff (rev 0)
+++ users/cal/net/ntop/files/patch-external-geoip.diff 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,34 @@
+--- configure.in.orig 2011-05-16 19:54:07.000000000 +0200
++++ configure.in 2011-05-16 19:54:28.000000000 +0200
+@@ -1810,31 +1810,6 @@
+ if test ".${ac_cv_lib_GeoIP_GeoIP_record_by_ipnum}" = ".yes"; then
+ LIBS="$LIBS -lGeoIP"
+
+-if test -f "GeoLiteCity.dat"; then
+- echo "GeoLiteCity.dat already present"
+-else
+- if test -f "3rd_party/GeoLiteCity.dat.gz"; then
+- cp 3rd_party/GeoLiteCity.dat.gz .
+- else
+- wget http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
+- fi
+-
+- gunzip GeoLiteCity.dat.gz
+-fi
+-
+-dnl> --------
+-
+-if test -f "GeoIPASNum.dat"; then
+- echo "GeoIPASNum.dat already present"
+-else
+- if test -f "3rd_party/GeoIPASNum.dat.gz"; then
+- cp 3rd_party/GeoIPASNum.dat.gz .
+- else
+- wget http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
+- fi
+-
+- gunzip GeoIPASNum.dat.gz
+-fi
+ else
+ AC_MSG_RESULT(Please install GeoIP (http://www.maxmind.com/))
+ exit 1
Added: users/cal/net/nxcomp/Portfile
===================================================================
--- users/cal/net/nxcomp/Portfile (rev 0)
+++ users/cal/net/nxcomp/Portfile 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,75 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name nxcomp
+version 3.4.0.7
+
+categories net
+platforms darwin
+license GPL-2
+
+maintainers cal openmaintainer
+
+description nxcomp is the X compression library by NX
+long_description nxcomp is a library compressing X commands to be passed over network \
+ for use with x2go.
+
+homepage http://www.nomachine.com/
+master_sites http://code.x2go.org/releases/source/nxcomp/
+distname ${name}_${version}
+checksums md5 64d0a19d3410a9c97a10f9d0345cf45c \
+ sha1 e07aa636a76e7a0db26a45c9ad9cccea19e1d8d2 \
+ rmd160 89e0f13274512a6f3dbb13b307a3ba4c48069607
+
+universal_variant yes
+supported_archs ppc i386 x86_64
+
+depends_lib port:libpng \
+ port:jpeg \
+ port:zlib \
+ port:xorg-xproto
+
+set major_version [lindex [split ${version} .] 0]
+set minor_version [join [lrange [split ${version} .] 0 1] .]
+set teeny_version [join [lrange [split ${version} .] 0 2] .]
+
+post-configure {
+ # the makefile would build a .so bundle, which we can't link against.
+ # the following lines make the makefile build a dylib
+ reinplace -E "s|LDFLAGS =|LDFLAGS = -dynamiclib -install_name ${prefix}/lib/libXcomp.${major_version}.dylib \
+ -compatibility_version ${minor_version} -current_version ${teeny_version}|g" ${worksrcpath}/Makefile
+ reinplace -E "s|\\.so(\\..*)?\$|\\1.dylib|g" ${worksrcpath}/Makefile
+ reinplace -E "s|-bundle$||g" ${worksrcpath}/Makefile
+
+ # Compiling C++ with -Wmissing-declarations generates a warning
+ # There's no C source in this project anyway
+ reinplace -E "s|-Wmissing-declarations||g" ${worksrcpath}/Makefile
+
+ # Our CFLAGS, CXXFLAGS aren't used if we don't do this
+ reinplace -E "s|CXXFLAGS =|CXXFLAGS = ${configure.cxxflags}|g" ${worksrcpath}/Makefile
+ reinplace -E "s|CCFLAGS =|CCFLAGS = ${configure.cflags}|g" ${worksrcpath}/Makefile
+
+ # Won't build universal without this
+ if {[variant_isset universal]} {
+ reinplace -E "s|CXXFLAGS =|CXXFLAGS = ${configure.universal_cxxflags}|g" ${worksrcpath}/Makefile
+ reinplace -E "s|CCFLAGS =|CCFLAGS = ${configure.universal_cflags}|g" ${worksrcpath}/Makefile
+ }
+}
+
+destroot {
+ # the makefile does not provide an install target
+ # install headers
+ xinstall -d ${destroot}${prefix}/include/${name}
+ eval xinstall -m 0644 [glob ${worksrcpath}/NX*.h] ${destroot}${prefix}/include/${name}
+
+ # install libraries
+ set libname libXcomp.${teeny_version}.dylib
+
+ xinstall -m 0644 -W ${worksrcpath} libXcomp.a ${destroot}${prefix}/lib/libXcomp.a
+ xinstall -m 0755 -W ${worksrcpath} ${libname} ${destroot}${prefix}/lib/${libname}
+ ln -s ${libname} ${destroot}${prefix}/lib/libXcomp.${major_version}.dylib
+ ln -s ${libname} ${destroot}${prefix}/lib/libXcomp.dylib
+}
+
Property changes on: users/cal/net/nxcomp/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/cal/net/nxproxy/Portfile
===================================================================
--- users/cal/net/nxproxy/Portfile (rev 0)
+++ users/cal/net/nxproxy/Portfile 2011-05-21 15:48:51 UTC (rev 78764)
@@ -0,0 +1,39 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name nxproxy
+version 3.4.0.2
+
+categories net
+platforms darwin
+license GPL-2
+
+maintainers cal openmaintainer
+
+description nxproxy is a compressing proxy for X
+long_description nxproxy is a library compressing X commands to be passed over network \
+ for use with x2go.
+
+homepage http://www.nomachine.com/
+master_sites http://code.x2go.org/releases/source/nxproxy/
+distname ${name}_${version}
+checksums md5 bd9985c4c982c1c9baaa3b001377c3cc \
+ sha1 27cf3ab25959c97674547fd245a74ab18c704469 \
+ rmd160 ee3dcbafb8989dc24665aade81bfb967d99e6f4e
+
+universal_variant yes
+supported_archs ppc i386 x86_64
+
+depends_lib port:nxcomp
+
+post-configure {
+ reinplace -E "s|-L../nxcomp|-L${prefix}/lib/|g" ${worksrcpath}/Makefile
+ reinplace -E "s|-I../nxcomp|-I${prefix}/include/nxcomp|g" ${worksrcpath}/Makefile
+ reinplace -E "s|prefix = ${prefix}|prefix = \$(DESTDIR)${prefix}|g" ${worksrcpath}/Makefile
+ if {[variant_isset universal]} {
+ reinplace -E "s|CXXFLAGS =|CXXFLAGS = ${configure.universal_cxxflags}|g" ${worksrcpath}/Makefile
+ }
+}
+
Property changes on: users/cal/net/nxproxy/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110521/7bf67cad/attachment.html>
More information about the macports-changes
mailing list