Last active
November 3, 2015 13:17
-
-
Save tehmaze/2a09d8afbf694ee7b31f to your computer and use it in GitHub Desktop.
ax25-tools patch for systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 5268bd1..e0467e4 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -3,16 +3,21 @@ | |
pkgname=ax25-tools | |
pkgver=0.0.10_rc4 | |
_pkgver=${pkgver//_/-} | |
-pkgrel=3 | |
+pkgrel=4 | |
pkgdesc="The network tools to configure hamradio interfaces and some of the hamradio specific network daemons" | |
-arch=('i686' 'x86_64') | |
+arch=('i686' 'x86_64' 'armv6h' 'armv7h') | |
url='http://www.linux-ax25.org' | |
license=('GPL2') | |
depends=('libax25') | |
makedepends=('make') | |
-source=("http://www.linux-ax25.org/pub/${pkgname}/${pkgname}-${_pkgver}.tar.xz" "ax25.patch") | |
+source=("http://www.linux-ax25.org/pub/${pkgname}/${pkgname}-${_pkgver}.tar.xz" | |
+ 'ax25.patch' | |
+ 'mheardd.service' | |
+ '[email protected]') | |
sha1sums=('c0c16ae86e8f41abb65e4467b619ba06ea310aa0' | |
- 'f3dfdfce9a795baef7f93d62d92441e81b96a83e') | |
+ 'f3dfdfce9a795baef7f93d62d92441e81b96a83e' | |
+ '019c34d10be26a3d936ee30dc7e6d02b6e46db89' | |
+ 'ea368fb662d196c8fd4875d576e1047737c91993') | |
build() { | |
cd "$srcdir/${pkgname}-${_pkgver}" | |
@@ -29,4 +34,7 @@ package() { | |
mkdir -p ${pkgdir}/usr/bin | |
make install DESTDIR=$pkgdir || return 1 | |
make installconf DESTDIR=$pkgdir || return 1 | |
+ mkdir -p ${pkgdir}/usr/lib/systemd/system | |
+ install -D -m 644 ../mheardd.service ${pkgdir}/usr/lib/systemd/system | |
+ install -D -m 644 ../mheardd\@.service ${pkgdir}/usr/lib/systemd/system | |
} | |
diff --git a/mheardd.service b/mheardd.service | |
new file mode 100644 | |
index 0000000..0d13bd4 | |
--- /dev/null | |
+++ b/mheardd.service | |
@@ -0,0 +1,9 @@ | |
+[Unit] | |
+Description=Collect information about packet activity | |
+ | |
+[Service] | |
+Type=forking | |
+ExecStart=/usr/bin/mheardd -l | |
+ | |
+[Install] | |
+WantedBy=multi-user.target | |
diff --git a/[email protected] b/[email protected] | |
new file mode 100644 | |
index 0000000..e8d282a | |
--- /dev/null | |
+++ b/[email protected] | |
@@ -0,0 +1,9 @@ | |
+[Unit] | |
+Description=Collect information about packet activity on %I | |
+ | |
+[Service] | |
+Type=forking | |
+ExecStart=/usr/bin/mheardd -l -p %I | |
+ | |
+[Install] | |
+WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment