diff options
author | Brian Bidulock | 2022-02-20 19:06:16 -0700 |
---|---|---|
committer | Brian Bidulock | 2022-02-20 19:06:16 -0700 |
commit | d872ca03adc0b9c5a0d0de22075ec1f2de29194b (patch) | |
tree | 4bddbd7945932a8a5300298b0dda0e07c1a9fd12 /PKGBUILD | |
parent | 237d25abcae0ab457ec7368f4261f28cb0d19c23 (diff) | |
download | aur-smcroute-git.tar.gz |
uppkg
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 24 insertions, 16 deletions
@@ -1,32 +1,40 @@ # Maintainer: Brian Bidulock <bidulock@openss7.org> pkgname="smcroute-git" -pkgver=2.0.0.r4.g73f6f14 +_pkgname=smcroute +pkgver=2.5.5.r5.gf5bf08e pkgrel=1 -pkgdesc="A command line tool to manipulate the multicast routes of a UNIX kernel. It supports both IPv4 and IPv6 multicast routing." +pkgdesc="command line tool to manipulate kernel multicast routing" arch=('i686' 'x86_64') url="https://github.com/troglobit/smcroute" license=('GPL2') -depends=('glibc') -provides=('smcroute' 'mcsender') +provides=("${_pkgname}=${pkgver%%.r*}-${pkgrel}" 'mcsender') conflicts=('smcroute' 'mcsender') backup=('etc/smcroute.conf') -source=("$pkgname::git+https://github.com/troglobit/smcroute.git" - 'smcroute.conf.example' - 'smcroute.service') -noextract=() -md5sums=('SKIP' - '98bdb5bbd222686761e318ee04825b7a' - '7b28500642045b2482f5ac873da0f86b') +depends=('libcap' 'bash' 'libsystemd.so') +makedepends=('git') +source=("$pkgname::git+https://github.com/troglobit/smcroute.git") +md5sums=('SKIP') +sha256sums=('SKIP') pkgver() { cd $pkgname git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^0\.95\./1.99.2./' } +prepare() { + cd $pkgname + ./autogen.sh +} + build() { cd $pkgname - ./configure --prefix=/usr --sbindir=/usr/bin + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --runstatedir=/run \ + --localstatedir=/var make } @@ -34,10 +42,10 @@ package() { cd $pkgname make DESTDIR="$pkgdir/" install - install -Dm644 "${srcdir}/smcroute.conf.example" "${pkgdir}/etc/smcroute.conf" - install -Dm644 "${srcdir}/smcroute.service" "${pkgdir}/usr/lib/systemd/system/smcroute.service" - # nothing useful here - rm -fr "${pkgdir}/usr/share/doc" + install -Dm644 /dev/null "${pkgdir}/etc/smcroute.conf" + sed -e '/^[mp]/s,^,#,' smcroute.conf >"${pkgdir}/etc/smcroute.conf" + install -Dm644 /dev/null "${pkgdir}/usr/lib/tmpfiles.d/smcroute.conf" + echo "d /etc/smcroute.d - -" >"${pkgdir}/usr/lib/tmpfiles.d/smcroute.conf" } # vim:set ts=2 sw=2 et: |