2015-06-08 09:31:15 +00:00
|
|
|
# Maintainer: Jack Frost <fbt@fleshless.org>
|
2021-03-04 22:14:42 +00:00
|
|
|
# % Trigger: 1614896079 %
|
2015-06-08 09:31:15 +00:00
|
|
|
|
2017-07-13 13:13:17 +00:00
|
|
|
pkgname='ssm-services-git'
|
|
|
|
pkgdesc='Service scripts for ssm'
|
2015-06-08 09:31:15 +00:00
|
|
|
license=( 'BSD' )
|
2020-05-12 19:48:01 +00:00
|
|
|
pkgver=r179.8e9c371
|
|
|
|
pkgrel=1
|
2015-06-08 09:31:15 +00:00
|
|
|
arch=( 'any' )
|
2020-05-12 19:48:01 +00:00
|
|
|
url='https://code.fleshless.org/Spark/ssm-services'
|
2015-06-08 09:31:15 +00:00
|
|
|
|
2017-07-13 13:13:17 +00:00
|
|
|
provides=( 'ssm-services' )
|
|
|
|
conflicts=( 'ssm-services' )
|
2015-06-08 09:31:15 +00:00
|
|
|
|
2021-03-06 04:11:02 +00:00
|
|
|
makedepends=( 'git' )
|
|
|
|
|
2020-05-12 19:48:01 +00:00
|
|
|
source=( "${pkgname}::git+https://code.fleshless.org/spark/ssm-services" )
|
2015-06-08 09:31:15 +00:00
|
|
|
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}"
|
|
|
|
|
2017-12-10 16:52:23 +00:00
|
|
|
mkdir -pm755 "$pkgdir/etc/ssm/services"
|
|
|
|
mkdir -pm755 "$pkgdir/usr/share/ssm/services"
|
2017-12-10 17:44:56 +00:00
|
|
|
cp -a services/* "$pkgdir/usr/share/ssm/services"
|
2015-06-08 09:31:15 +00:00
|
|
|
|
2017-07-13 13:13:17 +00:00
|
|
|
mkdir -pm755 "$pkgdir/etc/ssm/conf.d"
|
|
|
|
cp -a conf.d/* "$pkgdir/etc/ssm/conf.d/"
|
2015-06-08 09:31:15 +00:00
|
|
|
|
|
|
|
cd "${pkgdir}"
|
2017-07-13 13:13:17 +00:00
|
|
|
backup+=( etc/ssm/conf.d/* )
|
2015-06-08 09:31:15 +00:00
|
|
|
}
|