blob: 19804f67b20f9191393ae58b2fefc3535ad81eb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: lesto <lestofante88@gmail.com>
pkgname=freedns-daemon
pkgver=2.0
pkgrel=2
pkgdesc="Lighweight, barebone and almost dependency free daemon for freedns.afraid.org"
arch=('any')
url="http://www.github.com/lestofante/freedns"
urlgit="http://www.github.com/lestofante/freedns.git"
license=('GPL')
depends=('curl' 'bash')
makedepends=()
install='freedns-daemon.install'
backup=('usr/bin/freedns-daemon.sh')
changelog=
source=("$pkgname-$pkgver"::"git+$urlgit#tag=$pkgver")
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname-$pkgver"
chmod +x ./freedns-daemon.sh
}
package() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/bin"
cp freedns-daemon.sh "$pkgdir/usr/bin/"
mkdir -p "$pkgdir/etc/freedns-daemon/"
echo '#place here your direct url, should be something similar to "http://freedns.afraid.org/dynamic/update.php?BLABLABLABALBALdasdsadas=="' > "$pkgdir/etc/freedns-daemon/urls"
mkdir -p "$pkgdir/usr/lib/systemd/system"
cp freedns-daemon.service "$pkgdir/usr/lib/systemd/system/"
}
|