2015-06-08 09:31:15 +00:00
|
|
|
# Maintainer: Jack Frost <fbt@fleshless.org>
|
2016-11-02 14:34:35 +00:00
|
|
|
# % Trigger: 1478097269 %
|
2015-06-08 09:31:15 +00:00
|
|
|
|
|
|
|
pkgname='watchman-sm-services-git'
|
|
|
|
pkgdesc='Service scripts for watchman'
|
|
|
|
license=( 'BSD' )
|
2015-12-17 09:50:30 +00:00
|
|
|
pkgver=1.2.r59.gd259153
|
2015-06-08 09:31:15 +00:00
|
|
|
pkgrel=1
|
|
|
|
arch=( 'any' )
|
2016-02-25 02:57:50 +00:00
|
|
|
url='https://git.fleshless.org/watchman-services/about'
|
2015-06-08 09:31:15 +00:00
|
|
|
|
|
|
|
provides=( 'watchman-sm-services' )
|
|
|
|
conflicts=( 'watchman-sm-services' )
|
|
|
|
|
|
|
|
source=( "${pkgname}::git+https://git.fleshless.org/watchman-services" )
|
|
|
|
md5sums=( 'SKIP' )
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
|
|
|
|
if git_version=$( git describe --long --tags 2>/dev/null ); then
|
|
|
|
IFS='-' read last_tag tag_rev commit <<< "$git_version"
|
|
|
|
printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit"
|
|
|
|
else
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
mkdir -pm755 "$pkgdir/etc/watchman/init.d"
|
|
|
|
cp -a init.d/* "$pkgdir/etc/watchman/init.d/"
|
|
|
|
|
|
|
|
mkdir -pm755 "$pkgdir/etc/watchman/conf.d"
|
|
|
|
cp -a conf.d/* "$pkgdir/etc/watchman/conf.d/"
|
|
|
|
|
|
|
|
cd "${pkgdir}"
|
|
|
|
backup+=( etc/watchman/init.d/* )
|
|
|
|
backup+=( etc/watchman/conf.d/* )
|
|
|
|
}
|