Skip to content
Snippets Groups Projects
Commit acd63bc6 authored by Winston Weinert's avatar Winston Weinert Committed by Leo
Browse files

main/arpwatch: fix build problem, add doc subpackage

Without the chmod the following occur in the prepare phase:

```
>>> arpwatch: 21_all_arpwatch-2.1a15-pid-filename.patch
File arpwatch.8 is read-only; trying to patch anyway
patching file arpwatch.8
File arpwatch.h is read-only; trying to patch anyway
patching file arpwatch.h
File arpwatch.c is read-only; trying to patch anyway
patching file arpwatch.c
>>> arpwatch: 22_alpine_bihourly_script.patch
File bihourly.sh is read-only; trying to patch anyway
patching file bihourly.sh
>>> arpwatch: Updating ./config.sub
cp: cannot create regular file './config.sub': Permission denied
>>> ERROR: arpwatch: prepare failed
```

Some lint problems were addressed, but more remain as the patches do
not have descriptions.  I don't fully understand what each patch does,
so I did not attempt to address those lint problems.

The manpages and project docs are now installed in a doc
package.

Finally, the a sed command was added to install files as root:root
instead of bin:bin.
parent ea6fcb6c
No related branches found
No related tags found
2 merge requests!11958community/rclone: upgrade to 1.52.3,!11105main/arpwatch: fix build problem, add doc subpackage
......@@ -2,17 +2,17 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=arpwatch
pkgver=2.1a15
pkgrel=16
pkgrel=17
pkgdesc="Ethernet monitoring program"
url="http://www-nrg.ee.lbl.gov/"
arch="all"
license="BSD"
license="BSD-4-Clause-Shortened"
pkgusers="arpwatch"
makedepends="libpcap-dev"
install="$pkgname.pre-install"
options="!check" # No test suite.
subpackages="$pkgname-ethercodes"
source="ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz
subpackages="$pkgname-ethercodes $pkgname-doc"
source="ftp://ftp.ee.lbl.gov/arpwatch-$pkgver.tar.gz
arpwatch.confd
arpwatch.initd
01_all_arpwatch-2.1a15-manpages.patch
......@@ -38,16 +38,14 @@ source="ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz
21_all_arpwatch-2.1a15-pid-filename.patch
22_alpine_bihourly_script.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
chmod -R u+rwX "$builddir"
default_prepare
update_config_sub
sed -i'' -e 's/-o bin -g bin //g' Makefile.in
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -59,7 +57,6 @@ build() {
}
package() {
cd "$builddir"
#make install command wouldn't create directory
mkdir -p "$pkgdir"/usr/sbin/
make -j1 DESTDIR="$pkgdir" install
......@@ -83,8 +80,16 @@ ethercodes() {
done
}
doc() {
cd "$builddir"
install -d "$subpkgdir"/usr/share/man/man8
make DESTDIR="$subpkgdir" install-man
gzip "$subpkgdir"/usr/share/man/man8/*.8
install -d "$subpkgdir"/usr/share/doc/$pkgname
for f in CHANGES INSTALL README; do
install -m644 $f "$subpkgdir"/usr/share/doc/$pkgname/
done
}
sha512sums="f770b5b7954afe910dafb016e6e886a4e785564bcdc0ea0de9d7b1ca6a9a0b219a9d1b50b6f42a67afc2f836e782e8ff85ba5780583015d62c9694ac53f0bf90 arpwatch-2.1a15.tar.gz
854f6361bf02586516db4f50afdee729c047cd788985f72f475e592e0e744c24d7d765f0391d733dbf417048c26b6d43c00eb63c58e6798bdb2366b93cbfe03a arpwatch.confd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment