mirror of
https://github.com/archlinux/aur.git
synced 2026-01-27 20:28:31 +01:00
initial commit
This commit is contained in:
commit
61d14f8200
4 changed files with 129 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
66
PKGBUILD
Normal file
66
PKGBUILD
Normal file
|
|
@ -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')
|
||||
36
filetea.rc.d
Executable file
36
filetea.rc.d
Executable file
|
|
@ -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
|
||||
8
filetea.service
Normal file
8
filetea.service
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description="Low friction, one-click anonymous file sharing."
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/filetea
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Reference in a new issue