diff options
author | Thomas Weißschuh | 2012-02-12 14:10:25 +0000 |
---|---|---|
committer | Thomas Weißschuh | 2012-02-12 14:10:25 +0000 |
commit | 61d14f8200c5cecfd448f04cb830aa94945dedeb (patch) | |
tree | 247abc34425b84f483328e4a7f738ba5ea1fc257 | |
download | aur-61d14f8200c5cecfd448f04cb830aa94945dedeb.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 66 | ||||
-rwxr-xr-x | filetea.rc.d | 36 | ||||
-rw-r--r-- | filetea.service | 8 |
4 files changed, 129 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6ffe08282c4d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = filetea-git + pkgdesc = Low friction, one-click anonymous file sharing. + pkgver = 20111031 + pkgrel = 1 + url = https://gitorious.org/filetea/filetea + arch = i686 + arch = x86_64 + license = AGPL3 + makedepends = git + depends = evd-git + optdepends = jquery: to have automatic jquery updates + backup = etc/filetea/filetea.conf + source = filetea.rc.d + source = filetea.service + sha1sums = e48b01a3b261495169e2d42da0cc9a776839aa27 + sha1sums = baf43b7f5b5eb218245b727138c7b1d3a97d29fc + +pkgname = filetea-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8ddb723e6fb7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Thomas Weißschuh <thomas_weissschuh || lavabit.com> +pkgname=filetea-git +pkgver=20111031 +pkgrel=1 +pkgdesc="Low friction, one-click anonymous file sharing." +arch=(i686 x86_64) +url="https://gitorious.org/filetea/filetea" +license=('AGPL3') +depends=(evd-git) +optdepends=('jquery: to have automatic jquery updates') +makedepends=('git') +backup=('etc/filetea/filetea.conf') +source=('filetea.rc.d' + 'filetea.service') + +_gitroot=git://gitorious.org/filetea/filetea +_gitname=filetea + +build() { + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [[ -d "${_gitname}" ]]; then + cd "${_gitname}" && git pull origin + msg "The local files are updated." + else + git clone "${_gitroot}" "${_gitname}" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "${srcdir}/${_gitname}-build" + git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + cd "${srcdir}/${_gitname}-build" + + # + # BUILD HERE + # + ./autogen.sh + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${_gitname}-build" + mkdir -p ${pkgdir}/etc/{filetea,rc.d} + cp ${srcdir}/filetea.rc.d ${pkgdir}/etc/rc.d/filetea + cp filetea.conf ${pkgdir}/etc/filetea/ + + # systemd support + mkdir -p ${pkgdir}/lib/systemd/system/ + cp ${srcdir}/filetea.service ${pkgdir}/lib/systemd/system/ + + # change config (if you have installed jquery to /usr/share/jquery/jquery.min.js) + # jquery{,-ui} packets in AUR have no static filenames atm + # sed -i 's|^#jquery-dir=.*$|jquery-dir=/usr/share/jquery/|' ${pkgdir}/etc/filetea/filetea.conf + # same goes for jquery-ui + # sed -i 's|^#jquery-ui-dir=.*$|jquery-dir=/usr/share/jquery/|' ${pkgdir}/etc/filetea/filetea.conf + + make DESTDIR="${pkgdir}/" install +} + +# vim:set ts=2 sw=2 et: +sha1sums=('e48b01a3b261495169e2d42da0cc9a776839aa27' + 'baf43b7f5b5eb218245b727138c7b1d3a97d29fc') diff --git a/filetea.rc.d b/filetea.rc.d new file mode 100755 index 000000000000..b0964186534b --- /dev/null +++ b/filetea.rc.d @@ -0,0 +1,36 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting Filetea" + filetea -D &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon filetea + stat_done + fi + ;; + stop) + stat_busy "Stopping Filetea" + PID=$(pidof -o %PPID /usr/sbin/filetea) + kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon filetea + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/filetea.service b/filetea.service new file mode 100644 index 000000000000..e6be6b615748 --- /dev/null +++ b/filetea.service @@ -0,0 +1,8 @@ +[Unit] +Description="Low friction, one-click anonymous file sharing." + +[Service] +ExecStart=/usr/sbin/filetea + +[Install] +WantedBy=multi-user.target |