summaryrefslogtreecommitdiffstats
path: root/main/swatch/APKBUILD
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2010-11-26 11:59:54 +0100
committerMika Havela <mika.havela@gmail.com>2010-11-26 11:59:54 +0100
commit4a5c67baf55bbe6eea951668095e2a9e27bb2336 (patch)
treec6d37b667bdeaee2c3efdd4a17086f662e5bea12 /main/swatch/APKBUILD
parent75eefdb86db840f9e98e6d17c6dc4807f45a919b (diff)
downloadaports-4a5c67baf55bbe6eea951668095e2a9e27bb2336.tar.bz2
aports-4a5c67baf55bbe6eea951668095e2a9e27bb2336.tar.xz
testing/swatch: Moved to main
Confirmed that it works.
Diffstat (limited to 'main/swatch/APKBUILD')
-rw-r--r--main/swatch/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/main/swatch/APKBUILD b/main/swatch/APKBUILD
new file mode 100644
index 000000000..9d06df638
--- /dev/null
+++ b/main/swatch/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=swatch
+pkgver=3.2.3
+pkgrel=0
+pkgdesc="Logfile monitoring tool"
+url="http://sourceforge.net/projects/swatch/"
+license="GPL"
+depends="perl perl-date-calc perl-date-format perl-date-manip perl-file-tail perl-carp-clan"
+makedepends="perl-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ swatch.initd
+ swatch.confd
+ swatchrc"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+}
+
+build() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+ make test || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ make realclean || return 1
+
+ # remove perllocal.pod and .packlist
+ find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" -name .packlist -delete
+
+
+#echo "pkdir= $pkgdir"
+#echo "srcdir= $srcdir"
+
+ mkdir -p "$pkgdir"/etc/init.d/
+ mkdir -p "$pkgdir"/etc/conf.d/
+ mkdir -p "$pkgdir"/etc/$pkgname/
+
+ cp "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ cp "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ cp "$srcdir"/${pkgname}rc "$pkgdir"/etc/$pkgname/${pkgname}rc
+
+ chmod 755 "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="1162f1024cf07fc750ed4960d61ac4e8 swatch-3.2.3.tar.gz
+cc99f0831b4a069f90fdedee82495523 swatch.initd
+a02a10a0266781a1ce16cc3b5e84968c swatch.confd
+8a92d37f96982030e0283dc7fe706da8 swatchrc"