From 1e4be7edd0de5b212083ef27021f32bf9b54652b Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 20 Aug 2013 17:29:35 -0400 Subject: [PATCH] Update to seafile 1.8.1 This update adds a patch to link seaf-server-init against pthreads (and regenerate all the automake stuff related to this change) --- PKGBUILD | 11 ++++++++--- tools_Makefile.am.patch | 11 +++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 tools_Makefile.am.patch diff --git a/PKGBUILD b/PKGBUILD index 86ae822..724bda9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=seafile # The version number for the software -pkgver=1.7.1.1 +pkgver=1.8.1 #The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase pkgrel=1 @@ -40,20 +40,25 @@ options= install=seafile.install -source=("https://seafile.googlecode.com/files/seafile-1.7.1.1.tar.gz" +source=("https://seafile.googlecode.com/files/seafile-1.8.1.tar.gz" "seafile-admin.patch" + "tools_Makefile.am.patch" "seafile.install") -sha256sums=('840ca277756c3e2c4014a4b62ea1ed4eed732381910048387afcf52cbe2b4054' +sha256sums=('b08d4a79ef26023e49e5882d88d6e8d918dbb3e0ea17694fea1d593b493c8f81' '0d9578b85c00f3087a19f227b29c3fda13e83d093d024c68c1df5575d30d56dc' + '3afb6b0ce902215d4b4f119e1094b2b84b2ec39e4ba8bd29d40fd7b5cdf4fa0c' 'ce0cbf29b87e29709c6f7a1e6558a6c22d5aa24d41a9ed5b1dd44eab15c4d45c') prepare () { cd "$srcdir/$pkgname-$pkgver" patch -p1 -i $srcdir/seafile-admin.patch + patch -p1 -i $srcdir/tools_Makefile.am.patch } build () { cd "$srcdir/$pkgname-$pkgver" + aclocal + automake --add-missing ./configure --enable-server --enable-httpserver --prefix=/usr PYTHON=/usr/bin/python2 make -j1 } diff --git a/tools_Makefile.am.patch b/tools_Makefile.am.patch new file mode 100644 index 0000000..5364149 --- /dev/null +++ b/tools_Makefile.am.patch @@ -0,0 +1,11 @@ +--- a/tools/Makefile.am 2013-08-20 16:08:58.239195887 -0400 ++++ b/tools/Makefile.am 2013-08-20 16:09:21.402115531 -0400 +@@ -5,7 +5,7 @@ + + seaf_server_init_SOURCES = seaf-server-init.c ../common/seaf-db.c + +-seaf_server_init_LDADD = @GLIB2_LIBS@ @ZDB_LIBS@ ++seaf_server_init_LDADD = -lpthread @GLIB2_LIBS@ @ZDB_LIBS@ + seaf_server_init_LDFLAGS = @STATIC_COMPILE@ @SERVER_PKG_RPATH@ + + seaf_server_init_CPPFLAGS = @GLIB2_CFLAGS@ @ZDB_CFLAGS@ @MSVC_CFLAGS@