From edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 10 Nov 2015 13:38:06 +0000 Subject: community/seafile (and deps): move from main --- community/ccnet/APKBUILD | 56 +++++++++++++ community/libevhtp/APKBUILD | 45 +++++++++++ community/seafile/APKBUILD | 109 ++++++++++++++++++++++++++ community/seafile/seafile-controller.patch | 37 +++++++++ community/seafile/seafile-scripts.patch | 103 ++++++++++++++++++++++++ community/seafile/seafile-server.post-install | 9 +++ community/seafile/seafile-server.pre-install | 7 ++ community/seafile/seafile.confd | 4 + community/seafile/seafile.initd | 16 ++++ community/seahub/APKBUILD | 50 ++++++++++++ community/seahub/seahub.confd | 7 ++ community/seahub/seahub.initd | 19 +++++ community/seahub/seahub.post-install | 9 +++ main/ccnet/APKBUILD | 56 ------------- main/libevhtp/APKBUILD | 45 ----------- main/seafile/APKBUILD | 109 -------------------------- main/seafile/seafile-controller.patch | 37 --------- main/seafile/seafile-scripts.patch | 103 ------------------------ main/seafile/seafile-server.post-install | 9 --- main/seafile/seafile-server.pre-install | 7 -- main/seafile/seafile.confd | 4 - main/seafile/seafile.initd | 16 ---- main/seahub/APKBUILD | 50 ------------ main/seahub/seahub.confd | 7 -- main/seahub/seahub.initd | 19 ----- main/seahub/seahub.post-install | 9 --- 26 files changed, 471 insertions(+), 471 deletions(-) create mode 100644 community/ccnet/APKBUILD create mode 100644 community/libevhtp/APKBUILD create mode 100644 community/seafile/APKBUILD create mode 100644 community/seafile/seafile-controller.patch create mode 100644 community/seafile/seafile-scripts.patch create mode 100644 community/seafile/seafile-server.post-install create mode 100644 community/seafile/seafile-server.pre-install create mode 100644 community/seafile/seafile.confd create mode 100644 community/seafile/seafile.initd create mode 100644 community/seahub/APKBUILD create mode 100644 community/seahub/seahub.confd create mode 100644 community/seahub/seahub.initd create mode 100644 community/seahub/seahub.post-install delete mode 100644 main/ccnet/APKBUILD delete mode 100644 main/libevhtp/APKBUILD delete mode 100644 main/seafile/APKBUILD delete mode 100644 main/seafile/seafile-controller.patch delete mode 100644 main/seafile/seafile-scripts.patch delete mode 100644 main/seafile/seafile-server.post-install delete mode 100644 main/seafile/seafile-server.pre-install delete mode 100644 main/seafile/seafile.confd delete mode 100644 main/seafile/seafile.initd delete mode 100644 main/seahub/APKBUILD delete mode 100644 main/seahub/seahub.confd delete mode 100644 main/seahub/seahub.initd delete mode 100644 main/seahub/seahub.post-install diff --git a/community/ccnet/APKBUILD b/community/ccnet/APKBUILD new file mode 100644 index 0000000000..be7a17274c --- /dev/null +++ b/community/ccnet/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: +# Maintainer: Natanael Copa +pkgname=ccnet +pkgver=4.2.6 +pkgrel=0 +pkgdesc="framework for writing networked applications in C" +url="https://github.com/haiwen/ccnet/" +arch="all" +license="GPL3" +makedepends="autoconf automake bash glib-dev jansson-dev openssl-dev libevent-dev + libsearpc-dev libtool libzdb-dev python-dev sqlite-dev util-linux-dev vala" +source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/ccnet/archive/v${pkgver}.tar.gz" +subpackages="$pkgname-dev py-$pkgname:py $pkgname-libs" + +_builddir="${srcdir}/${pkgname}-${pkgver}" + +prepare() { + local pf + cd "${_builddir}" + for pf in $source; do + case $pf in + *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; + esac + done +} + +build() { + cd "${_builddir}" + ./autogen.sh + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-python \ + --enable-server + make || return 1 +} + +package() { + cd "${_builddir}" + make DESTDIR="${pkgdir}" install || return 1 + rm "${pkgdir}"/usr/lib/libccnet.la +} + +py() { + arch="noarch" + cd "$_builddir" + pkgdesc="$pkgname python bindings" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + +md5sums="41ccfa7ed98a33536ed23802ce4f3afc ccnet-4.2.6.tar.gz" +sha256sums="c9ef7a803713f1fc9248a6ecf202238f8d9904de6ffe957c4344119e3657556c ccnet-4.2.6.tar.gz" +sha512sums="5aef8fab630b65f679b22d3b029e46cdd6473aab38896457553aaa722cc452310a66e689bb71751b9a81555c3111d6d79b73d355a056eeaee5a6242ed23a2625 ccnet-4.2.6.tar.gz" diff --git a/community/libevhtp/APKBUILD b/community/libevhtp/APKBUILD new file mode 100644 index 0000000000..12e15c0467 --- /dev/null +++ b/community/libevhtp/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: +# Maintainer: Natanael Copa +pkgname=libevhtp +pkgver=1.2.11 +pkgrel=0 +pkgdesc="Flexible replacement for libevent's httpd API" +url="https://github.com/ellzey/libevhtp/" +arch="all" +license="BSD" +makedepends="cmake libevent-dev openssl-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/ellzey/libevhtp/archive/${pkgver}.tar.gz" +subpackages="$pkgname-dev" + +_builddir="${srcdir}/${pkgname}-${pkgver}" + +prepare() { + local pf + cd "${_builddir}" + for pf in $source; do + case $pf in + *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; + esac + done +} + +build() { + cd "${_builddir}" + cmake -DCUSTOM_BINDIR=/usr/bin \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \ + -DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \ + -DEVHTP_BUILD_SHARED=ON \ + + . + make || return 1 +} + +package() { + cd "${_builddir}" + make DESTDIR="${pkgdir}" install || return 1 +} + +md5sums="d0af057bc23f15ae5959088b86ad6352 libevhtp-1.2.11.tar.gz" +sha256sums="0e60ef0b75c9e0351d18e015c9a688a70d9c66d2ca3f6a44a7da7153e11e067d libevhtp-1.2.11.tar.gz" +sha512sums="849102c9e5ec54f4bbe4b4106e72ddd0864c8636bdd1f821e70d6dc4dc0b8b0039257e67d597199161187d522ff65dc826862adfc7c60e755a1ffa95fcd2ac44 libevhtp-1.2.11.tar.gz" diff --git a/community/seafile/APKBUILD b/community/seafile/APKBUILD new file mode 100644 index 0000000000..b0ba2e9ce4 --- /dev/null +++ b/community/seafile/APKBUILD @@ -0,0 +1,109 @@ +# Contributor: +# Maintainer: Natanael Copa +pkgname=seafile +pkgver=4.2.6 +pkgrel=2 +pkgdesc="Cloud storage system with advanced support for file syncing, privacy protection and teamwork" +url="https://github.com/haiwen/seafile/" +arch="all" +license="GPL3" +makedepends="autoconf automake bash ccnet-dev curl-dev fuse-dev glib-dev + intltool jansson-dev libarchive-dev libevent-dev libevhtp-dev + libsearpc-dev libtool libzdb-dev openssl-dev sqlite-dev util-linux-dev + vala bsd-compat-headers libevhtp-dev" +depends="bash ${pkgname}-common" +pkgusers="seafile" +pkggroups="seafile" +source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/seafile/archive/v${pkgver}.tar.gz + seafile-controller.patch seafile-scripts.patch seafile.initd seafile.confd" +subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py $pkgname-server + $pkgname-common" +install="seafile-server.pre-install seafile-server.post-install" + +_builddir="${srcdir}/${pkgname}-${pkgver}" + +prepare() { + local pf + cd "${_builddir}" || return 1 + for pf in $source; do + case $pf in + *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; + esac + done +} + +build() { + cd "${_builddir}" + ./autogen.sh + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-server \ + --enable-python \ + --enable-fuse \ + --enable-client \ + --enable-console + make CFLAGS="$CFLAGS $(pkgconf --cflags evhtp)" || return 1 +} + +package() { + cd "${_builddir}" + make DESTDIR="${pkgdir}" install || return 1 + rm "${pkgdir}"/usr/lib/libseafile.la || return 1 +} + +py() { + arch="noarch" + cd "$_builddir" + pkgdesc="$pkgname python bindings" + install -d "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ || return 1 +} + +common() { + mkdir -p "${subpkgdir}"/usr/bin || return 1 + mkdir -p "${subpkgdir}"/usr/lib || return 1 + mv "${pkgdir}"/usr/bin/seafile "${subpkgdir}"/usr/bin + mv "${pkgdir}"/usr/lib/libseafile.so.0* "${subpkgdir}"/usr/lib +} + +server() { + mkdir -p "${subpkgdir}"/usr/bin + for b in "${pkgdir}"/usr/bin/*; do + if [[ "$b" != "${pkgdir}/usr/bin/seaf-cli" ]] && \ + [[ "$b" != "${pkgdir}/usr/bin/seaf-daemon" ]] && \ + [[ "$b" != "${pkgdir}/usr/bin/seafile" ]]; then + mv "$b" "${subpkgdir}/usr/bin" || return 1 + fi + done + mkdir -m 755 -p "${subpkgdir}"/usr/share/seafile || return 1 + cp -ar "${_builddir}"/scripts "${subpkgdir}"/usr/share/seafile || return 1 + install -D -m0644 "${srcdir}"/seafile.confd "${subpkgdir}"/etc/conf.d/seafile \ + || return 1 + install -D -m0755 "${srcdir}"/seafile.initd "${subpkgdir}"/etc/init.d/seafile \ + || return 1 + + #make dirs for default instance + SEAFILE_HOME="${subpkgdir}"/var/lib/seafile + SEAFILE_DEFAULT=$SEAFILE_HOME/default + mkdir -m 755 -p $SEAFILE_DEFAULT 2>/dev/null + chown seafile:seafile $SEAFILE_DEFAULT + +} +md5sums="d05600bf1187e0354ee8e85f3074a786 seafile-4.2.6.tar.gz +3f2b5457441871a4922d873e2b386711 seafile-controller.patch +5d5217a4616ba9d57b56f0b61797b419 seafile-scripts.patch +d2319373c376bff87a3005057d887193 seafile.initd +cc33cc3ef3b04415a7b1d160e6b64e2b seafile.confd" +sha256sums="a4a51dbdd5b2c49a8b1cb16ffacea92a0f52b5a0050c0de20057893f183d9e40 seafile-4.2.6.tar.gz +03fa3d43bcaed4bf720e7cbec5ea0fe9e1d8d90987bc8b69a045dafe10e1c27a seafile-controller.patch +42fc1ed64c0a3cac0c5f74f2c269d96eba80e8b7a9dbff6332726342b576edf6 seafile-scripts.patch +aaf173e5df205fc4b152f6d75c5b3b7ec738bb1acbbe413ea6fce268b1d830c1 seafile.initd +a78183173ce054a245878d309dda9bff7981193d2b0594d299030e403e857952 seafile.confd" +sha512sums="83d55c0cd6ac6fdca5b6dde50c0d3f402894621271bf9b2c5e24106672ac091c23c7ba8e124d88f5142d2eed4373f078f45793699402bf7732804762f1928cfa seafile-4.2.6.tar.gz +6b70df847d2d3f1fbd856f220dd5686d04c1ee4810c60d3bb28c80e85f508d3b448a0e6cfb9a83a43876285968ec917867838ef31c00cfb431a8e1e953241246 seafile-controller.patch +9af26dbbc62c2e135d1ecb29243de658524d3cdbcfdfbaafcb30e137d0230792a7466b7b01a449a113ddf87f89acdceaf8c06192dd2ee28b3bbd18e9973a7b0d seafile-scripts.patch +66b84519ab66e7435da13a2ed1869bac3ead1f7b46ed4b0a5ecda6dfcea056c5e0af8abcf1eba00fc2e68b8df7e07e3951968c385850f01ecf46f08dfdbe7083 seafile.initd +051ccc065a3b7abc7c802e00e364da1c3f689e133c4ba37385dbff97cfe8ad4b490cf53778344d129213fb0238258690a47f5e737387bce1368db59d22ee8504 seafile.confd" diff --git a/community/seafile/seafile-controller.patch b/community/seafile/seafile-controller.patch new file mode 100644 index 0000000000..438064d5f3 --- /dev/null +++ b/community/seafile/seafile-controller.patch @@ -0,0 +1,37 @@ +--- a/controller/seafile-controller.c 2014-01-16 19:56:24.183523103 +0100 ++++ b/controller/seafile-controller.c 2014-01-16 19:55:57.123523652 +0100 +@@ -281,7 +281,7 @@ + tmp = g_path_get_dirname (bin_dir); + installpath = g_path_get_dirname (tmp); + +- topdir = g_path_get_dirname (installpath); ++ // topdir = g_path_get_dirname (installpath); + + g_free (exectuble); + g_free (tmp); +@@ -643,6 +643,7 @@ + return -1; + } + ++ topdir = g_path_get_dirname(config_dir); + ctl->client = ccnet_client_new (); + ctl->sync_client = ccnet_client_new (); + +@@ -657,14 +658,14 @@ + } + + if (logdir == NULL) { +- char *topdir = g_path_get_dirname(config_dir); ++ //char *topdir = g_path_get_dirname(config_dir); + logdir = g_build_filename (topdir, "logs", NULL); + if (checkdir_with_mkdir(logdir) < 0) { + fprintf (stderr, "failed to create log folder \"%s\": %s\n", + logdir, strerror(errno)); + return -1; + } +- g_free (topdir); ++ //g_free (topdir); + } + + ctl->config_dir = config_dir; + diff --git a/community/seafile/seafile-scripts.patch b/community/seafile/seafile-scripts.patch new file mode 100644 index 0000000000..f6e8978bb5 --- /dev/null +++ b/community/seafile/seafile-scripts.patch @@ -0,0 +1,103 @@ +diff --git a/scripts/seaf-fuse.sh b/scripts/seaf-fuse.sh +index 463002e..92ef285 100755 +--- a/scripts/seaf-fuse.sh ++++ b/scripts/seaf-fuse.sh +@@ -6,10 +6,7 @@ SCRIPT=$(readlink -f "$0") + INSTALLPATH=$(dirname "${SCRIPT}") + TOPDIR=$(dirname "${INSTALLPATH}") + default_ccnet_conf_dir=${TOPDIR}/ccnet +-seaf_fuse=${INSTALLPATH}/seafile/bin/seaf-fuse +- +-export PATH=${INSTALLPATH}/seafile/bin:$PATH +-export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} ++seaf_fuse=/usr/bin/seaf-fuse + + script_name=$0 + function usage () { +diff --git a/scripts/seaf-gc.sh b/scripts/seaf-gc.sh +index 489961a..605fabd 100755 +--- a/scripts/seaf-gc.sh ++++ b/scripts/seaf-gc.sh +@@ -6,12 +6,9 @@ SCRIPT=$(readlink -f "$0") + INSTALLPATH=$(dirname "${SCRIPT}") + TOPDIR=$(dirname "${INSTALLPATH}") + default_ccnet_conf_dir=${TOPDIR}/ccnet +-seaf_gc=${INSTALLPATH}/seafile/bin/seafserv-gc ++seaf_gc=/usr/bin/seafserv-gc + seaf_gc_opts="" + +-export PATH=${INSTALLPATH}/seafile/bin:$PATH +-export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} +- + script_name=$0 + function usage () { + echo "usage : " +diff --git a/scripts/seafile.sh b/scripts/seafile.sh +index e04d65f..9ca171c 100755 +--- a/scripts/seafile.sh ++++ b/scripts/seafile.sh +@@ -17,12 +17,7 @@ INSTALLPATH=$(dirname "${SCRIPT}") + TOPDIR=$(dirname "${INSTALLPATH}") + default_ccnet_conf_dir=${TOPDIR}/ccnet + ccnet_pidfile=${INSTALLPATH}/runtime/ccnet.pid +-seaf_controller="${INSTALLPATH}/seafile/bin/seafile-controller" +- +- +-export PATH=${INSTALLPATH}/seafile/bin:$PATH +-export ORIG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH} +-export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} ++seaf_controller="/usr/bin/seafile-controller" + + script_name=$0 + function usage () { +@@ -102,7 +97,7 @@ function start_seafile_server () { + + echo "Starting seafile server, please wait ..." + +- LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_controller} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" ++ ${seaf_controller} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" + + sleep 3 + +diff --git a/scripts/setup-seafile.sh b/scripts/setup-seafile.sh +index f7c181c..e88fbce 100755 +--- a/scripts/setup-seafile.sh ++++ b/scripts/setup-seafile.sh +@@ -8,8 +8,6 @@ default_seafile_data_dir=${TOPDIR}/seafile-data + default_seahub_db=${TOPDIR}/seahub.db + default_conf_dir=${TOPDIR}/conf + +-export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} +- + use_existing_ccnet="false" + use_existing_seafile="false" + +@@ -395,8 +393,8 @@ echo + echo "If you are OK with the configuration, press [ENTER] to continue." + read dummy + +-ccnet_init=${INSTALLPATH}/seafile/bin/ccnet-init +-seaf_server_init=${INSTALLPATH}/seafile/bin/seaf-server-init ++ccnet_init=/usr/bin/ccnet-init ++seaf_server_init=/usr/bin/seaf-server-init + + # ------------------------------------------- + # Create ccnet conf +@@ -404,7 +402,7 @@ seaf_server_init=${INSTALLPATH}/seafile/bin/seaf-server-init + if [[ "${use_existing_ccnet}" != "true" ]]; then + echo "Generating ccnet configuration in ${default_ccnet_conf_dir}..." + echo +- if ! LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH "${ccnet_init}" -c "${default_ccnet_conf_dir}" --name "${server_name}" --port "${server_port}" --host "${ip_or_domain}"; then ++ if ! "${ccnet_init}" -c "${default_ccnet_conf_dir}" --name "${server_name}" --port "${server_port}" --host "${ip_or_domain}"; then + err_and_quit; + fi + +@@ -419,7 +417,7 @@ sleep 0.5 + if [[ "${use_existing_seafile}" != "true" ]]; then + echo "Generating seafile configuration in ${seafile_data_dir} ..." + echo +- if ! LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_server_init} --seafile-dir "${seafile_data_dir}" \ ++ if ! ${seaf_server_init} --seafile-dir "${seafile_data_dir}" \ + --port ${seafile_server_port} --fileserver-port ${fileserver_port}; then + + echo "Failed to generate seafile configuration" diff --git a/community/seafile/seafile-server.post-install b/community/seafile/seafile-server.post-install new file mode 100644 index 0000000000..4e46bd8da5 --- /dev/null +++ b/community/seafile/seafile-server.post-install @@ -0,0 +1,9 @@ +#!/bin/sh + +SEAFILE_HOME=/var/lib/seafile +SEAFILE_DEFAULT=$SEAFILE_HOME/default + +if [[ ! -d $SEAFILE_DEFAULT/scripts ]]; then + cd $SEAFILE_DEFAULT + cp -ar /usr/share/seafile/scripts . +fi \ No newline at end of file diff --git a/community/seafile/seafile-server.pre-install b/community/seafile/seafile-server.pre-install new file mode 100644 index 0000000000..173e73a35b --- /dev/null +++ b/community/seafile/seafile-server.pre-install @@ -0,0 +1,7 @@ +#!/bin/sh + +SEAFILE_HOME=/var/lib/seafile + +addgroup -S -g 800 seafile 2>/dev/null +adduser -h $SEAFILE_HOME -s /bin/sh -G seafile -g seafile -u 800 -D seafile 2>/dev/null +exit 0 diff --git a/community/seafile/seafile.confd b/community/seafile/seafile.confd new file mode 100644 index 0000000000..b169b0e55f --- /dev/null +++ b/community/seafile/seafile.confd @@ -0,0 +1,4 @@ +instance="default" + +seafile_user="seafile" +seafile_group="seafile" diff --git a/community/seafile/seafile.initd b/community/seafile/seafile.initd new file mode 100644 index 0000000000..b92a7653ad --- /dev/null +++ b/community/seafile/seafile.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +start() { + ebegin "Starting Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \ + --group $seafile_group /usr/bin/seafile-admin start $seafile_opts +} + +stop() { + ebegin "Stopping Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin stop +} diff --git a/community/seahub/APKBUILD b/community/seahub/APKBUILD new file mode 100644 index 0000000000..538532f444 --- /dev/null +++ b/community/seahub/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: +# Maintainer: Natanael Copa +pkgname=seahub +pkgver=4.0.1 +pkgrel=1 +pkgdesc="web frontend for Seafile" +url="https://github.com/haiwen/seahub/" +arch="noarch" +license="Apache" +depends="bash py-dateutil py-mako py-simplejson py-pillow py-pip py-virtualenv py-six + python py-django1.5 py-gunicorn py-chardet py-django-djblets py-ccnet py-libsearpc + py-django-simple-captcha py-django-registration py-flup py-seafile seafile-server" +source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/seahub/archive/v${pkgver}-server.tar.gz + seahub.confd seahub.initd" +install="seahub.post-install" + +_builddir="${srcdir}/${pkgname}-${pkgver}-server" + +prepare() { + local pf + cd "${_builddir}" + for pf in $source; do + case $pf in + *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; + esac + done +} + +build() { + echo +} + +package() { + cd "${_builddir}" + mkdir -m 755 -p "${pkgdir}"/usr/share/seahub || return 1 + cp -ar "${_builddir}"/* "${pkgdir}"/usr/share/seahub + install -D -m0644 "${srcdir}"/seahub.confd "${pkgdir}"/etc/conf.d/seahub \ + || return 1 + install -D -m0755 "${srcdir}"/seahub.initd "${pkgdir}"/etc/init.d/seahub \ + || return 1 +} +md5sums="93e8755aec1cd7d028538e04683f30e7 seahub-4.0.1.tar.gz +e1ed5467cd78159fb7e73e2d2d925a8e seahub.confd +1a1777dd469cbbc6773b2c31e265cb37 seahub.initd" +sha256sums="7429751f1b47dbaf6ecc5b8cb32f00b85c817f536b34b923fb47cc046559c6d3 seahub-4.0.1.tar.gz +8b0e8bf45d278bbf32f4dca4a402f2584a87e46adee2e24732804acebd1c2cff seahub.confd +2da114c938efa349f7762466d5cffc26393262968db5194cd469c2fd79077396 seahub.initd" +sha512sums="85c793893dcada7b0600abdc4ab6c0fcc7ee978d8828af1cd7dc6a711c30c45e9b217c906de282b7d901923f582882361a2ac2f39ed6d49c8d8c5b6816dfc14e seahub-4.0.1.tar.gz +d55dbd3e59ae48a930cbcb42ec840689a17f6cb1cb16f6d0d155e646b24accb8a5e5c1f59f549f66941bb21475b2c6ce55a3bb014d016bfeddea13602984c2a6 seahub.confd +71445244d966d5770618c2b4b003959ae135e737657d7b7cb79b2def8787655d0a50f8a7fdb1fee64108e51410e99d1a52144c707c2247bc7ffd8d422c5c7f4c seahub.initd" diff --git a/community/seahub/seahub.confd b/community/seahub/seahub.confd new file mode 100644 index 0000000000..a72045dc1e --- /dev/null +++ b/community/seahub/seahub.confd @@ -0,0 +1,7 @@ +instance="default" + +seafile_user="seafile" +seafile_group="seafile" + +# to run seahub in fcgi mode uncomment the following line +#seafile_opts="--fastcgi --port 8500" diff --git a/community/seahub/seahub.initd b/community/seahub/seahub.initd new file mode 100644 index 0000000000..faee878e3b --- /dev/null +++ b/community/seahub/seahub.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +export SEAHUB_LOG_DIR=/var/lib/seafile/$instance/logs + +depend() { + need net +} + +start() { + ebegin "Starting Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \ + --group $seafile_group /usr/bin/seafile-admin start +} + +stop() { + ebegin "Stopping Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin \ + stop +} diff --git a/community/seahub/seahub.post-install b/community/seahub/seahub.post-install new file mode 100644 index 0000000000..262e8be8fe --- /dev/null +++ b/community/seahub/seahub.post-install @@ -0,0 +1,9 @@ +#!/bin/sh + +SEAFILE_HOME=/var/lib/seafile +SEAFILE_DEFAULT=$SEAFILE_HOME/default + +if [[ ! -h $SEAFILE_DEFAULT/seafile-server/seahub ]]; then + su seafile -c "mkdir -m 755 -p $SEAFILE_DEFAULT/seafile-server" 2>/dev/null + su seafile -c "cp -R /usr/share/seahub $SEAFILE_DEFAULT/seafile-server" 2>/dev/null +fi \ No newline at end of file diff --git a/main/ccnet/APKBUILD b/main/ccnet/APKBUILD deleted file mode 100644 index be7a17274c..0000000000 --- a/main/ccnet/APKBUILD +++ /dev/null @@ -1,56 +0,0 @@ -# Contributor: -# Maintainer: Natanael Copa -pkgname=ccnet -pkgver=4.2.6 -pkgrel=0 -pkgdesc="framework for writing networked applications in C" -url="https://github.com/haiwen/ccnet/" -arch="all" -license="GPL3" -makedepends="autoconf automake bash glib-dev jansson-dev openssl-dev libevent-dev - libsearpc-dev libtool libzdb-dev python-dev sqlite-dev util-linux-dev vala" -source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/ccnet/archive/v${pkgver}.tar.gz" -subpackages="$pkgname-dev py-$pkgname:py $pkgname-libs" - -_builddir="${srcdir}/${pkgname}-${pkgver}" - -prepare() { - local pf - cd "${_builddir}" - for pf in $source; do - case $pf in - *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; - esac - done -} - -build() { - cd "${_builddir}" - ./autogen.sh - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --enable-python \ - --enable-server - make || return 1 -} - -package() { - cd "${_builddir}" - make DESTDIR="${pkgdir}" install || return 1 - rm "${pkgdir}"/usr/lib/libccnet.la -} - -py() { - arch="noarch" - cd "$_builddir" - pkgdesc="$pkgname python bindings" - install -d "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ -} - -md5sums="41ccfa7ed98a33536ed23802ce4f3afc ccnet-4.2.6.tar.gz" -sha256sums="c9ef7a803713f1fc9248a6ecf202238f8d9904de6ffe957c4344119e3657556c ccnet-4.2.6.tar.gz" -sha512sums="5aef8fab630b65f679b22d3b029e46cdd6473aab38896457553aaa722cc452310a66e689bb71751b9a81555c3111d6d79b73d355a056eeaee5a6242ed23a2625 ccnet-4.2.6.tar.gz" diff --git a/main/libevhtp/APKBUILD b/main/libevhtp/APKBUILD deleted file mode 100644 index 12e15c0467..0000000000 --- a/main/libevhtp/APKBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# Contributor: -# Maintainer: Natanael Copa -pkgname=libevhtp -pkgver=1.2.11 -pkgrel=0 -pkgdesc="Flexible replacement for libevent's httpd API" -url="https://github.com/ellzey/libevhtp/" -arch="all" -license="BSD" -makedepends="cmake libevent-dev openssl-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/ellzey/libevhtp/archive/${pkgver}.tar.gz" -subpackages="$pkgname-dev" - -_builddir="${srcdir}/${pkgname}-${pkgver}" - -prepare() { - local pf - cd "${_builddir}" - for pf in $source; do - case $pf in - *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; - esac - done -} - -build() { - cd "${_builddir}" - cmake -DCUSTOM_BINDIR=/usr/bin \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \ - -DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \ - -DEVHTP_BUILD_SHARED=ON \ - - . - make || return 1 -} - -package() { - cd "${_builddir}" - make DESTDIR="${pkgdir}" install || return 1 -} - -md5sums="d0af057bc23f15ae5959088b86ad6352 libevhtp-1.2.11.tar.gz" -sha256sums="0e60ef0b75c9e0351d18e015c9a688a70d9c66d2ca3f6a44a7da7153e11e067d libevhtp-1.2.11.tar.gz" -sha512sums="849102c9e5ec54f4bbe4b4106e72ddd0864c8636bdd1f821e70d6dc4dc0b8b0039257e67d597199161187d522ff65dc826862adfc7c60e755a1ffa95fcd2ac44 libevhtp-1.2.11.tar.gz" diff --git a/main/seafile/APKBUILD b/main/seafile/APKBUILD deleted file mode 100644 index b0ba2e9ce4..0000000000 --- a/main/seafile/APKBUILD +++ /dev/null @@ -1,109 +0,0 @@ -# Contributor: -# Maintainer: Natanael Copa -pkgname=seafile -pkgver=4.2.6 -pkgrel=2 -pkgdesc="Cloud storage system with advanced support for file syncing, privacy protection and teamwork" -url="https://github.com/haiwen/seafile/" -arch="all" -license="GPL3" -makedepends="autoconf automake bash ccnet-dev curl-dev fuse-dev glib-dev - intltool jansson-dev libarchive-dev libevent-dev libevhtp-dev - libsearpc-dev libtool libzdb-dev openssl-dev sqlite-dev util-linux-dev - vala bsd-compat-headers libevhtp-dev" -depends="bash ${pkgname}-common" -pkgusers="seafile" -pkggroups="seafile" -source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/seafile/archive/v${pkgver}.tar.gz - seafile-controller.patch seafile-scripts.patch seafile.initd seafile.confd" -subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py $pkgname-server - $pkgname-common" -install="seafile-server.pre-install seafile-server.post-install" - -_builddir="${srcdir}/${pkgname}-${pkgver}" - -prepare() { - local pf - cd "${_builddir}" || return 1 - for pf in $source; do - case $pf in - *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; - esac - done -} - -build() { - cd "${_builddir}" - ./autogen.sh - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --enable-server \ - --enable-python \ - --enable-fuse \ - --enable-client \ - --enable-console - make CFLAGS="$CFLAGS $(pkgconf --cflags evhtp)" || return 1 -} - -package() { - cd "${_builddir}" - make DESTDIR="${pkgdir}" install || return 1 - rm "${pkgdir}"/usr/lib/libseafile.la || return 1 -} - -py() { - arch="noarch" - cd "$_builddir" - pkgdesc="$pkgname python bindings" - install -d "$subpkgdir"/usr/lib || return 1 - mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ || return 1 -} - -common() { - mkdir -p "${subpkgdir}"/usr/bin || return 1 - mkdir -p "${subpkgdir}"/usr/lib || return 1 - mv "${pkgdir}"/usr/bin/seafile "${subpkgdir}"/usr/bin - mv "${pkgdir}"/usr/lib/libseafile.so.0* "${subpkgdir}"/usr/lib -} - -server() { - mkdir -p "${subpkgdir}"/usr/bin - for b in "${pkgdir}"/usr/bin/*; do - if [[ "$b" != "${pkgdir}/usr/bin/seaf-cli" ]] && \ - [[ "$b" != "${pkgdir}/usr/bin/seaf-daemon" ]] && \ - [[ "$b" != "${pkgdir}/usr/bin/seafile" ]]; then - mv "$b" "${subpkgdir}/usr/bin" || return 1 - fi - done - mkdir -m 755 -p "${subpkgdir}"/usr/share/seafile || return 1 - cp -ar "${_builddir}"/scripts "${subpkgdir}"/usr/share/seafile || return 1 - install -D -m0644 "${srcdir}"/seafile.confd "${subpkgdir}"/etc/conf.d/seafile \ - || return 1 - install -D -m0755 "${srcdir}"/seafile.initd "${subpkgdir}"/etc/init.d/seafile \ - || return 1 - - #make dirs for default instance - SEAFILE_HOME="${subpkgdir}"/var/lib/seafile - SEAFILE_DEFAULT=$SEAFILE_HOME/default - mkdir -m 755 -p $SEAFILE_DEFAULT 2>/dev/null - chown seafile:seafile $SEAFILE_DEFAULT - -} -md5sums="d05600bf1187e0354ee8e85f3074a786 seafile-4.2.6.tar.gz -3f2b5457441871a4922d873e2b386711 seafile-controller.patch -5d5217a4616ba9d57b56f0b61797b419 seafile-scripts.patch -d2319373c376bff87a3005057d887193 seafile.initd -cc33cc3ef3b04415a7b1d160e6b64e2b seafile.confd" -sha256sums="a4a51dbdd5b2c49a8b1cb16ffacea92a0f52b5a0050c0de20057893f183d9e40 seafile-4.2.6.tar.gz -03fa3d43bcaed4bf720e7cbec5ea0fe9e1d8d90987bc8b69a045dafe10e1c27a seafile-controller.patch -42fc1ed64c0a3cac0c5f74f2c269d96eba80e8b7a9dbff6332726342b576edf6 seafile-scripts.patch -aaf173e5df205fc4b152f6d75c5b3b7ec738bb1acbbe413ea6fce268b1d830c1 seafile.initd -a78183173ce054a245878d309dda9bff7981193d2b0594d299030e403e857952 seafile.confd" -sha512sums="83d55c0cd6ac6fdca5b6dde50c0d3f402894621271bf9b2c5e24106672ac091c23c7ba8e124d88f5142d2eed4373f078f45793699402bf7732804762f1928cfa seafile-4.2.6.tar.gz -6b70df847d2d3f1fbd856f220dd5686d04c1ee4810c60d3bb28c80e85f508d3b448a0e6cfb9a83a43876285968ec917867838ef31c00cfb431a8e1e953241246 seafile-controller.patch -9af26dbbc62c2e135d1ecb29243de658524d3cdbcfdfbaafcb30e137d0230792a7466b7b01a449a113ddf87f89acdceaf8c06192dd2ee28b3bbd18e9973a7b0d seafile-scripts.patch -66b84519ab66e7435da13a2ed1869bac3ead1f7b46ed4b0a5ecda6dfcea056c5e0af8abcf1eba00fc2e68b8df7e07e3951968c385850f01ecf46f08dfdbe7083 seafile.initd -051ccc065a3b7abc7c802e00e364da1c3f689e133c4ba37385dbff97cfe8ad4b490cf53778344d129213fb0238258690a47f5e737387bce1368db59d22ee8504 seafile.confd" diff --git a/main/seafile/seafile-controller.patch b/main/seafile/seafile-controller.patch deleted file mode 100644 index 438064d5f3..0000000000 --- a/main/seafile/seafile-controller.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/controller/seafile-controller.c 2014-01-16 19:56:24.183523103 +0100 -+++ b/controller/seafile-controller.c 2014-01-16 19:55:57.123523652 +0100 -@@ -281,7 +281,7 @@ - tmp = g_path_get_dirname (bin_dir); - installpath = g_path_get_dirname (tmp); - -- topdir = g_path_get_dirname (installpath); -+ // topdir = g_path_get_dirname (installpath); - - g_free (exectuble); - g_free (tmp); -@@ -643,6 +643,7 @@ - return -1; - } - -+ topdir = g_path_get_dirname(config_dir); - ctl->client = ccnet_client_new (); - ctl->sync_client = ccnet_client_new (); - -@@ -657,14 +658,14 @@ - } - - if (logdir == NULL) { -- char *topdir = g_path_get_dirname(config_dir); -+ //char *topdir = g_path_get_dirname(config_dir); - logdir = g_build_filename (topdir, "logs", NULL); - if (checkdir_with_mkdir(logdir) < 0) { - fprintf (stderr, "failed to create log folder \"%s\": %s\n", - logdir, strerror(errno)); - return -1; - } -- g_free (topdir); -+ //g_free (topdir); - } - - ctl->config_dir = config_dir; - diff --git a/main/seafile/seafile-scripts.patch b/main/seafile/seafile-scripts.patch deleted file mode 100644 index f6e8978bb5..0000000000 --- a/main/seafile/seafile-scripts.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff --git a/scripts/seaf-fuse.sh b/scripts/seaf-fuse.sh -index 463002e..92ef285 100755 ---- a/scripts/seaf-fuse.sh -+++ b/scripts/seaf-fuse.sh -@@ -6,10 +6,7 @@ SCRIPT=$(readlink -f "$0") - INSTALLPATH=$(dirname "${SCRIPT}") - TOPDIR=$(dirname "${INSTALLPATH}") - default_ccnet_conf_dir=${TOPDIR}/ccnet --seaf_fuse=${INSTALLPATH}/seafile/bin/seaf-fuse -- --export PATH=${INSTALLPATH}/seafile/bin:$PATH --export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} -+seaf_fuse=/usr/bin/seaf-fuse - - script_name=$0 - function usage () { -diff --git a/scripts/seaf-gc.sh b/scripts/seaf-gc.sh -index 489961a..605fabd 100755 ---- a/scripts/seaf-gc.sh -+++ b/scripts/seaf-gc.sh -@@ -6,12 +6,9 @@ SCRIPT=$(readlink -f "$0") - INSTALLPATH=$(dirname "${SCRIPT}") - TOPDIR=$(dirname "${INSTALLPATH}") - default_ccnet_conf_dir=${TOPDIR}/ccnet --seaf_gc=${INSTALLPATH}/seafile/bin/seafserv-gc -+seaf_gc=/usr/bin/seafserv-gc - seaf_gc_opts="" - --export PATH=${INSTALLPATH}/seafile/bin:$PATH --export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} -- - script_name=$0 - function usage () { - echo "usage : " -diff --git a/scripts/seafile.sh b/scripts/seafile.sh -index e04d65f..9ca171c 100755 ---- a/scripts/seafile.sh -+++ b/scripts/seafile.sh -@@ -17,12 +17,7 @@ INSTALLPATH=$(dirname "${SCRIPT}") - TOPDIR=$(dirname "${INSTALLPATH}") - default_ccnet_conf_dir=${TOPDIR}/ccnet - ccnet_pidfile=${INSTALLPATH}/runtime/ccnet.pid --seaf_controller="${INSTALLPATH}/seafile/bin/seafile-controller" -- -- --export PATH=${INSTALLPATH}/seafile/bin:$PATH --export ORIG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH} --export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} -+seaf_controller="/usr/bin/seafile-controller" - - script_name=$0 - function usage () { -@@ -102,7 +97,7 @@ function start_seafile_server () { - - echo "Starting seafile server, please wait ..." - -- LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_controller} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" -+ ${seaf_controller} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" - - sleep 3 - -diff --git a/scripts/setup-seafile.sh b/scripts/setup-seafile.sh -index f7c181c..e88fbce 100755 ---- a/scripts/setup-seafile.sh -+++ b/scripts/setup-seafile.sh -@@ -8,8 +8,6 @@ default_seafile_data_dir=${TOPDIR}/seafile-data - default_seahub_db=${TOPDIR}/seahub.db - default_conf_dir=${TOPDIR}/conf - --export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH} -- - use_existing_ccnet="false" - use_existing_seafile="false" - -@@ -395,8 +393,8 @@ echo - echo "If you are OK with the configuration, press [ENTER] to continue." - read dummy - --ccnet_init=${INSTALLPATH}/seafile/bin/ccnet-init --seaf_server_init=${INSTALLPATH}/seafile/bin/seaf-server-init -+ccnet_init=/usr/bin/ccnet-init -+seaf_server_init=/usr/bin/seaf-server-init - - # ------------------------------------------- - # Create ccnet conf -@@ -404,7 +402,7 @@ seaf_server_init=${INSTALLPATH}/seafile/bin/seaf-server-init - if [[ "${use_existing_ccnet}" != "true" ]]; then - echo "Generating ccnet configuration in ${default_ccnet_conf_dir}..." - echo -- if ! LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH "${ccnet_init}" -c "${default_ccnet_conf_dir}" --name "${server_name}" --port "${server_port}" --host "${ip_or_domain}"; then -+ if ! "${ccnet_init}" -c "${default_ccnet_conf_dir}" --name "${server_name}" --port "${server_port}" --host "${ip_or_domain}"; then - err_and_quit; - fi - -@@ -419,7 +417,7 @@ sleep 0.5 - if [[ "${use_existing_seafile}" != "true" ]]; then - echo "Generating seafile configuration in ${seafile_data_dir} ..." - echo -- if ! LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_server_init} --seafile-dir "${seafile_data_dir}" \ -+ if ! ${seaf_server_init} --seafile-dir "${seafile_data_dir}" \ - --port ${seafile_server_port} --fileserver-port ${fileserver_port}; then - - echo "Failed to generate seafile configuration" diff --git a/main/seafile/seafile-server.post-install b/main/seafile/seafile-server.post-install deleted file mode 100644 index 4e46bd8da5..0000000000 --- a/main/seafile/seafile-server.post-install +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -SEAFILE_HOME=/var/lib/seafile -SEAFILE_DEFAULT=$SEAFILE_HOME/default - -if [[ ! -d $SEAFILE_DEFAULT/scripts ]]; then - cd $SEAFILE_DEFAULT - cp -ar /usr/share/seafile/scripts . -fi \ No newline at end of file diff --git a/main/seafile/seafile-server.pre-install b/main/seafile/seafile-server.pre-install deleted file mode 100644 index 173e73a35b..0000000000 --- a/main/seafile/seafile-server.pre-install +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -SEAFILE_HOME=/var/lib/seafile - -addgroup -S -g 800 seafile 2>/dev/null -adduser -h $SEAFILE_HOME -s /bin/sh -G seafile -g seafile -u 800 -D seafile 2>/dev/null -exit 0 diff --git a/main/seafile/seafile.confd b/main/seafile/seafile.confd deleted file mode 100644 index b169b0e55f..0000000000 --- a/main/seafile/seafile.confd +++ /dev/null @@ -1,4 +0,0 @@ -instance="default" - -seafile_user="seafile" -seafile_group="seafile" diff --git a/main/seafile/seafile.initd b/main/seafile/seafile.initd deleted file mode 100644 index b92a7653ad..0000000000 --- a/main/seafile/seafile.initd +++ /dev/null @@ -1,16 +0,0 @@ -#!/sbin/openrc-run - -depend() { - need net -} - -start() { - ebegin "Starting Seafile $instance instance" - start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \ - --group $seafile_group /usr/bin/seafile-admin start $seafile_opts -} - -stop() { - ebegin "Stopping Seafile $instance instance" - start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin stop -} diff --git a/main/seahub/APKBUILD b/main/seahub/APKBUILD deleted file mode 100644 index 538532f444..0000000000 --- a/main/seahub/APKBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# Contributor: -# Maintainer: Natanael Copa -pkgname=seahub -pkgver=4.0.1 -pkgrel=1 -pkgdesc="web frontend for Seafile" -url="https://github.com/haiwen/seahub/" -arch="noarch" -license="Apache" -depends="bash py-dateutil py-mako py-simplejson py-pillow py-pip py-virtualenv py-six - python py-django1.5 py-gunicorn py-chardet py-django-djblets py-ccnet py-libsearpc - py-django-simple-captcha py-django-registration py-flup py-seafile seafile-server" -source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/seahub/archive/v${pkgver}-server.tar.gz - seahub.confd seahub.initd" -install="seahub.post-install" - -_builddir="${srcdir}/${pkgname}-${pkgver}-server" - -prepare() { - local pf - cd "${_builddir}" - for pf in $source; do - case $pf in - *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; - esac - done -} - -build() { - echo -} - -package() { - cd "${_builddir}" - mkdir -m 755 -p "${pkgdir}"/usr/share/seahub || return 1 - cp -ar "${_builddir}"/* "${pkgdir}"/usr/share/seahub - install -D -m0644 "${srcdir}"/seahub.confd "${pkgdir}"/etc/conf.d/seahub \ - || return 1 - install -D -m0755 "${srcdir}"/seahub.initd "${pkgdir}"/etc/init.d/seahub \ - || return 1 -} -md5sums="93e8755aec1cd7d028538e04683f30e7 seahub-4.0.1.tar.gz -e1ed5467cd78159fb7e73e2d2d925a8e seahub.confd -1a1777dd469cbbc6773b2c31e265cb37 seahub.initd" -sha256sums="7429751f1b47dbaf6ecc5b8cb32f00b85c817f536b34b923fb47cc046559c6d3 seahub-4.0.1.tar.gz -8b0e8bf45d278bbf32f4dca4a402f2584a87e46adee2e24732804acebd1c2cff seahub.confd -2da114c938efa349f7762466d5cffc26393262968db5194cd469c2fd79077396 seahub.initd" -sha512sums="85c793893dcada7b0600abdc4ab6c0fcc7ee978d8828af1cd7dc6a711c30c45e9b217c906de282b7d901923f582882361a2ac2f39ed6d49c8d8c5b6816dfc14e seahub-4.0.1.tar.gz -d55dbd3e59ae48a930cbcb42ec840689a17f6cb1cb16f6d0d155e646b24accb8a5e5c1f59f549f66941bb21475b2c6ce55a3bb014d016bfeddea13602984c2a6 seahub.confd -71445244d966d5770618c2b4b003959ae135e737657d7b7cb79b2def8787655d0a50f8a7fdb1fee64108e51410e99d1a52144c707c2247bc7ffd8d422c5c7f4c seahub.initd" diff --git a/main/seahub/seahub.confd b/main/seahub/seahub.confd deleted file mode 100644 index a72045dc1e..0000000000 --- a/main/seahub/seahub.confd +++ /dev/null @@ -1,7 +0,0 @@ -instance="default" - -seafile_user="seafile" -seafile_group="seafile" - -# to run seahub in fcgi mode uncomment the following line -#seafile_opts="--fastcgi --port 8500" diff --git a/main/seahub/seahub.initd b/main/seahub/seahub.initd deleted file mode 100644 index faee878e3b..0000000000 --- a/main/seahub/seahub.initd +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/openrc-run - -export SEAHUB_LOG_DIR=/var/lib/seafile/$instance/logs - -depend() { - need net -} - -start() { - ebegin "Starting Seafile $instance instance" - start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \ - --group $seafile_group /usr/bin/seafile-admin start -} - -stop() { - ebegin "Stopping Seafile $instance instance" - start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin \ - stop -} diff --git a/main/seahub/seahub.post-install b/main/seahub/seahub.post-install deleted file mode 100644 index 262e8be8fe..0000000000 --- a/main/seahub/seahub.post-install +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -SEAFILE_HOME=/var/lib/seafile -SEAFILE_DEFAULT=$SEAFILE_HOME/default - -if [[ ! -h $SEAFILE_DEFAULT/seafile-server/seahub ]]; then - su seafile -c "mkdir -m 755 -p $SEAFILE_DEFAULT/seafile-server" 2>/dev/null - su seafile -c "cp -R /usr/share/seahub $SEAFILE_DEFAULT/seafile-server" 2>/dev/null -fi \ No newline at end of file -- cgit v1.2.3