preparing for 1.0.2
This commit is contained in:
parent
5c2fe78dce
commit
b6c70a83d3
1 changed files with 31 additions and 16 deletions
|
|
@ -1,31 +1,46 @@
|
|||
# Maintainer: Troy Engel <troyengel+arch@gmail.com>
|
||||
|
||||
pkgname=petrified
|
||||
pkgver=1.0.1
|
||||
pkgrel=2
|
||||
pkgdesc="Bash client to update dynamic DNS at freedns.afraid.org"
|
||||
pkgbase=petrified
|
||||
pkgname=(petrified petrified-systemd)
|
||||
pkgver=1.0.2
|
||||
pkgrel=1
|
||||
changelog=${pkgbase}.archlog
|
||||
arch=('any')
|
||||
url="https://github.com/troyengel/petrified"
|
||||
url="https://github.com/troyengel/${pkgbase}"
|
||||
license=('GPL3')
|
||||
options=('emptydirs')
|
||||
depends=('util-linux' 'coreutils' 'bash' 'iproute2' 'curl')
|
||||
install=petrified.archinst
|
||||
backup=('etc/petrified.conf')
|
||||
source=("https://github.com/troyengel/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
md5sums=('51eb41827d256950f0aa76710b23fef0')
|
||||
source=("https://github.com/troyengel/${pkgbase}/archive/v${pkgver}.tar.gz")
|
||||
md5sums=('8c1e6e145182e0ce5cc9f605093ed462')
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
package_petrified() {
|
||||
pkgdesc="Bash client to update dynamic DNS at freedns.afraid.org"
|
||||
depends=('util-linux' 'coreutils' 'bash' 'iproute2' 'curl')
|
||||
optdepends=("${pkgbase}-systemd: Unit files for systemd usage")
|
||||
backup=('etc/petrified.conf')
|
||||
install=${pkgbase}.archinst
|
||||
|
||||
cd "${srcdir}/${pkgbase}-${pkgver}"
|
||||
|
||||
# Install the system bits
|
||||
install -Dm0755 petrified "${pkgdir}/usr/bin/petrified"
|
||||
install -Dm0600 petrified.conf "${pkgdir}/etc/petrified.conf"
|
||||
install -Dm0644 petrified.logrotate "${pkgdir}/etc/logrotate.d/petrified"
|
||||
install -dm0755 "${pkgdir}/var/cache/petrified"
|
||||
|
||||
# Install examples for the user
|
||||
install -dm0755 "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -m0644 petrified.conf petrified.crontab petrified.dispatch \
|
||||
README.md "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -dm0755 "${pkgdir}/usr/share/doc/${pkgname}/extra"
|
||||
install -m0644 README.md "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -m0644 extra/* "${pkgdir}/usr/share/doc/${pkgname}/extra"
|
||||
}
|
||||
|
||||
package_petrified-systemd() {
|
||||
pkgdesc="Unit files for petrified systemd usage"
|
||||
depends=("${pkgbase}" 'systemd')
|
||||
|
||||
cd "${srcdir}/${pkgbase}-${pkgver}"
|
||||
|
||||
# Systemd files
|
||||
install -dm0755 "${pkgdir}/usr/lib/systemd/system"
|
||||
install -m0644 systemd/petrified.target systemd/petrified.timer \
|
||||
systemd/petrified@.service \
|
||||
"${pkgdir}/usr/lib/systemd/system"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue