Browse Source

Initial import: 1.4.2

Moritz Maxeiner 10 years ago
commit
da1c86cd68
4 changed files with 176 additions and 0 deletions
  1. 29 0
      .SRCINFO
  2. 58 0
      0001-Add-autoconfiguration-for-libjansson.patch
  3. 81 0
      PKGBUILD
  4. 8 0
      libccnet.pc.patch

+ 29 - 0
.SRCINFO

@@ -0,0 +1,29 @@
+pkgbase = ccnet
+	pkgdesc = A framework for writing networked applications in C.
+	pkgver = 1.4.2
+	pkgrel = 11
+	url = https://github.com/haiwen/ccnet/
+	arch = i686
+	arch = x86_64
+	arch = armv7h
+	arch = armv6h
+	license = custom
+	makedepends = vala>=0.8
+	makedepends = pacman>=4.1
+	depends = libevent>=2.0
+	depends = libzdb>=2.10.2
+	depends = libsearpc>=1.2.2
+	depends = jansson>=2.2.1
+	depends = libldap
+	depends = python2>=2.6
+	source = https://github.com/haiwen/ccnet/archive/v4.2.4.tar.gz
+	source = https://raw.githubusercontent.com/haiwen/ccnet/master/COPYRIGHT
+	source = libccnet.pc.patch
+	source = 0001-Add-autoconfiguration-for-libjansson.patch
+	sha256sums = 49ebcfddbb2de2ec74faaaf9e6fd5f6104f05c2c477946706afa4f3ea24686f5
+	sha256sums = c07aeccf581c255e60acbddcc6af90290e0d6354e6ec0ee1987b82845d3d57ac
+	sha256sums = 66c3b02c3981db6a80819e0ae103bedadf8dfdf81405a7f75a9cba714acf973f
+	sha256sums = 382b1da33e2b6c0ebab8d3921d92b7417fa11d969ad822cd43aee499fd7b3d94
+
+pkgname = ccnet
+

+ 58 - 0
0001-Add-autoconfiguration-for-libjansson.patch

@@ -0,0 +1,58 @@
+diff --git a/configure.ac b/configure.ac
+index d7ebba9..3c1be4b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -241,6 +241,7 @@ APPINDICATOR_REQUIRED=0.0.7
+ GLIB_REQUIRED=2.16.0
+ GTK_REQUIRED=2.16.0
+ SEARPC_REQUIRED=1.0
++JANSSON_REQUIRED=2.2.1
+ ZDB_REQUIRED=2.10
+ LIBNAUTILUS_EXTENSION_REQUIRED=2.30.1
+ SEARPC_REQUIRED=1.0
+@@ -262,6 +263,10 @@ PKG_CHECK_MODULES(SEARPC, [libsearpc >= $SEARPC_REQUIRED])
+ AC_SUBST(SEARPC_CFLAGS)
+ AC_SUBST(SEARPC_LIBS)
+ 
++PKG_CHECK_MODULES(JANSSON, [jansson >= $JANSSON_REQUIRED])
++AC_SUBST(JANSSON_CFLAGS)
++AC_SUBST(JANSSON_LIBS)
++
+ PKG_CHECK_MODULES(LIBEVENT, [libevent >= $LIBEVENT_REQUIRED])
+ AC_SUBST(LIBEVENT_CFLAGS)
+ AC_SUBST(LIBEVENT_LIBS)
+diff --git a/net/daemon/Makefile.am b/net/daemon/Makefile.am
+index b8e745f..1321dfc 100644
+--- a/net/daemon/Makefile.am
++++ b/net/daemon/Makefile.am
+@@ -95,7 +95,7 @@ ccnet_SOURCES = ccnet-daemon.c \
+ 
+ ccnet_LDADD = @LIBEVENT_LIBS@ $(top_builddir)/lib/libccnetd.la \
+            @GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 \
+-           @LIB_WS32@ @LIB_INTL@ @LIB_IPHLPAPI@ @SEARPC_LIBS@
++           @LIB_WS32@ @LIB_INTL@ @LIB_IPHLPAPI@ @SEARPC_LIBS@ @JANSSON_LIBS@
+ 
+ 
+ ccnet_LDFLAGS = @STATIC_COMPILE@ @CONSOLE@ @SERVER_PKG_RPATH@ -no-undefined
+@@ -106,7 +106,7 @@ ccnet_test_SOURCES = ccnet-test.c daemon-session.c $(common_srcs)
+ 
+ ccnet_test_LDADD = @LIBEVENT_LIBS@ $(top_builddir)/lib/libccnetd.la \
+ 	@GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 \
+-	@LIB_WS32@ @LIB_INTL@ @LIB_IPHLPAPI@ @SEARPC_LIBS@
++	@LIB_WS32@ @LIB_INTL@ @LIB_IPHLPAPI@ @SEARPC_LIBS@ @JANSSON_LIBS@
+ 
+ ccnet_test_LDFLAGS = @STATIC_COMPILE@ -no-undefined @CONSOLE@
+ 
+diff --git a/net/server/Makefile.am b/net/server/Makefile.am
+index da98420..867a1ff 100644
+--- a/net/server/Makefile.am
++++ b/net/server/Makefile.am
+@@ -103,7 +103,7 @@ ccnet_server_LDADD = @LIBEVENT_LIBS@ $(top_builddir)/lib/libccnetd.la \
+            @GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 \
+ 	       -lpthread \
+            @LIB_WS32@ @LIB_INTL@ @LIB_IPHLPAPI@ @SEARPC_LIBS@ @ZDB_LIBS@ \
+-	  	   @LDAP_LIBS@
++	  	   @LDAP_LIBS@ @JANSSON_LIBS@
+ 
+ 
+ ccnet_server_LDFLAGS = @STATIC_COMPILE@ @CONSOLE@ @SERVER_PKG_RPATH@ -no-undefined

+ 81 - 0
PKGBUILD

@@ -0,0 +1,81 @@
+# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
+# Contributor: Aaron Lindsay <aaron@aclindsay.com>
+
+# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname
+pkgname=ccnet
+
+# The version number for the software
+pkgver=1.4.2
+_seafilever=4.2.4
+
+#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
+pkgrel=11
+
+# The description of the package, should be about 80 characters long (one line)
+pkgdesc="A framework for writing networked applications in C."
+
+# The type of processor this software can build and work on. See PKGBUILD#arch
+arch=('i686' 'x86_64' 'armv7h' 'armv6h')
+
+# The official website for the software your PKGBUILD will install
+url="https://github.com/haiwen/ccnet/"
+
+# The License that the software is released under. See PKGBUILD#license
+license=('custom')
+
+# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator
+depends=('libevent>=2.0' 'libzdb>=2.10.2' 'libsearpc>=1.2.2' 'jansson>=2.2.1' 'libldap' 'python2>=2.6')
+
+# Packages that must be installed to build the software, but at not necessary to run it
+makedepends=('vala>=0.8' 'pacman>=4.1')
+
+# Optional packages that extend the software's functionality
+optdepends=()
+
+# List of Package names that this PKGBUILD provides. Put modified packages that will be installed here.
+provides=()
+
+# Change the default behavior of makepkg see PKGBUILD#options
+options=()
+
+source=("https://github.com/haiwen/ccnet/archive/v${_seafilever}.tar.gz"
+	"https://raw.githubusercontent.com/haiwen/ccnet/master/COPYRIGHT"
+	"libccnet.pc.patch"
+	"0001-Add-autoconfiguration-for-libjansson.patch")
+
+configure_ccnet() {
+	./autogen.sh
+	CFLAGS="-lpthread" ./configure --enable-server --enable-ldap --prefix=/usr PYTHON=/usr/bin/python2
+}
+
+pkgver() {
+	cd "$srcdir/$pkgname-$_seafilever"
+	configure_ccnet &> /dev/null
+	grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
+}
+
+prepare () {
+	cd "$srcdir/$pkgname-$_seafilever"
+	patch -p1 -i $srcdir/libccnet.pc.patch
+	patch -p1 -i $srcdir/0001-Add-autoconfiguration-for-libjansson.patch
+}
+
+build () {
+	cd "$srcdir/$pkgname-$_seafilever"
+	configure_ccnet
+	make -j1
+}
+
+package () {
+	#install library and header files
+	cd "$srcdir/$pkgname-$_seafilever"
+	make DESTDIR="$pkgdir/" install
+
+	#copy license over
+	mkdir -p $pkgdir/usr/share/licenses/$pkgname
+	cp $srcdir/COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/
+}
+sha256sums=('49ebcfddbb2de2ec74faaaf9e6fd5f6104f05c2c477946706afa4f3ea24686f5'
+            'c07aeccf581c255e60acbddcc6af90290e0d6354e6ec0ee1987b82845d3d57ac'
+            '66c3b02c3981db6a80819e0ae103bedadf8dfdf81405a7f75a9cba714acf973f'
+            '382b1da33e2b6c0ebab8d3921d92b7417fa11d969ad822cd43aee499fd7b3d94')

+ 8 - 0
libccnet.pc.patch

@@ -0,0 +1,8 @@
+--- a/libccnet.pc.in	2013-01-10 01:35:24.000000000 -0500
++++ b/libccnet.pc.in	2013-01-19 11:31:50.479301798 -0500
+@@ -1,4 +1,4 @@
+-prefix=(DESTDIR)@prefix@
++prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@