From aa6f7efd4f5b46dd477ddabc120ec76ed3ebc631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Mon, 11 Apr 2011 10:12:42 +0300 Subject: main/lsyncd: moved from testing --- main/lsyncd/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++++++++ main/lsyncd/lsyncd.initd | 32 ++++++++++++++++++++++++++++ testing/lsyncd/APKBUILD | 52 --------------------------------------------- testing/lsyncd/lsyncd.initd | 32 ---------------------------- 4 files changed, 84 insertions(+), 84 deletions(-) create mode 100644 main/lsyncd/APKBUILD create mode 100644 main/lsyncd/lsyncd.initd delete mode 100644 testing/lsyncd/APKBUILD delete mode 100644 testing/lsyncd/lsyncd.initd diff --git a/main/lsyncd/APKBUILD b/main/lsyncd/APKBUILD new file mode 100644 index 0000000000..61a797cf3f --- /dev/null +++ b/main/lsyncd/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=lsyncd +pkgver=2.0.4 +pkgrel=2 +pkgdesc="Live Syncing (Mirror) Daemon" +url="http://code.google.com/p/lsyncd/" +arch="all" +license="GPLv2+" +depends="rsync" +depends_dev= +makedepends="$depends_dev lua-dev" +install="" +subpackages="$pkgname-doc" +source="http://lsyncd.googlecode.com/files/lsyncd-$pkgver.tar.gz + $pkgname.initd" + +_builddir="$srcdir"/lsyncd-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + mkdir -p "$pkgdir/etc/lsyncd" + cp "$_builddir"/examples/*.lua \ + "$pkgdir"/etc/lsyncd/ + install -Dm755 "$srcdir/$pkgname.initd" \ + "$pkgdir/etc/init.d/$pkgname" || return 1 + +} + +md5sums="0b4557dd3d87a02ae0cbd7b5fc16cd0c lsyncd-2.0.4.tar.gz +b3d38982ef1a6e09a76586418ec6c35d lsyncd.initd" diff --git a/main/lsyncd/lsyncd.initd b/main/lsyncd/lsyncd.initd new file mode 100644 index 0000000000..5578b1a2af --- /dev/null +++ b/main/lsyncd/lsyncd.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript + +NAME=lsyncd +DAEMON=/usr/bin/$NAME +PIDFILE=/var/run/$NAME.pid +USER=root +GROUP=root +CONF=/etc/lsyncd/lsyncd.lua + +depend() { + need net +} + +start() { + touch "$PIDFILE" + chown $USER:$GROUP "$PIDFILE" + ebegin "Starting $NAME" + start-stop-daemon --start --quiet \ + --pidfile "$PIDFILE" \ + --user "$USER" --group "$GROUP" \ + --chdir /etc/lsyncd \ + --exec "$DAEMON" -- \ + "$CONF" -pidfile "$PIDFILE" + eend $? +} + +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --stop --quiet \ + --pidfile "$PIDFILE" + eend $? +} diff --git a/testing/lsyncd/APKBUILD b/testing/lsyncd/APKBUILD deleted file mode 100644 index 61a797cf3f..0000000000 --- a/testing/lsyncd/APKBUILD +++ /dev/null @@ -1,52 +0,0 @@ -# Contributor: Natanael Copa -# Maintainer: Natanael Copa -pkgname=lsyncd -pkgver=2.0.4 -pkgrel=2 -pkgdesc="Live Syncing (Mirror) Daemon" -url="http://code.google.com/p/lsyncd/" -arch="all" -license="GPLv2+" -depends="rsync" -depends_dev= -makedepends="$depends_dev lua-dev" -install="" -subpackages="$pkgname-doc" -source="http://lsyncd.googlecode.com/files/lsyncd-$pkgver.tar.gz - $pkgname.initd" - -_builddir="$srcdir"/lsyncd-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - mkdir -p "$pkgdir/etc/lsyncd" - cp "$_builddir"/examples/*.lua \ - "$pkgdir"/etc/lsyncd/ - install -Dm755 "$srcdir/$pkgname.initd" \ - "$pkgdir/etc/init.d/$pkgname" || return 1 - -} - -md5sums="0b4557dd3d87a02ae0cbd7b5fc16cd0c lsyncd-2.0.4.tar.gz -b3d38982ef1a6e09a76586418ec6c35d lsyncd.initd" diff --git a/testing/lsyncd/lsyncd.initd b/testing/lsyncd/lsyncd.initd deleted file mode 100644 index 5578b1a2af..0000000000 --- a/testing/lsyncd/lsyncd.initd +++ /dev/null @@ -1,32 +0,0 @@ -#!/sbin/runscript - -NAME=lsyncd -DAEMON=/usr/bin/$NAME -PIDFILE=/var/run/$NAME.pid -USER=root -GROUP=root -CONF=/etc/lsyncd/lsyncd.lua - -depend() { - need net -} - -start() { - touch "$PIDFILE" - chown $USER:$GROUP "$PIDFILE" - ebegin "Starting $NAME" - start-stop-daemon --start --quiet \ - --pidfile "$PIDFILE" \ - --user "$USER" --group "$GROUP" \ - --chdir /etc/lsyncd \ - --exec "$DAEMON" -- \ - "$CONF" -pidfile "$PIDFILE" - eend $? -} - -stop() { - ebegin "Stopping $NAME" - start-stop-daemon --stop --quiet \ - --pidfile "$PIDFILE" - eend $? -} -- cgit v1.2.3