aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpwatch/APKBUILD
blob: f036a1b96bd0a379d879e9099d045e89fa23a285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=arpwatch
pkgver=2.1a15
pkgrel=11
pkgdesc="Ethernet monitoring program"
url="http://www-nrg.ee.lbl.gov/"
arch="all"
license="BSD"
depends=
pkgusers=arpwatch
makedepends="libpcap-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-ethercodes"
source="ftp://ftp.ee.lbl.gov/$pkgname.tar.gz
	arpwatch.confd
	arpwatch.initd
	01_all_arpwatch-2.1a15-manpages.patch
	02_all_arpwatch-2.1a15-srcdir.patch
	03_all_arpwatch-2.1a15-getopt.patch
	04_all_arpwatch-2.1a15-sendmail-cmdline-opt.patch
	05_all_arpwatch-2.1a15-promiscuous-mode.patch
	06_all_arpwatch-2.1a15-bogons-report.patch
	07_all_arpwatch-2.1a15-specify-mail.patch
	08_all_arpwatch-2.1a15-drop-priveleges.patch
	09_all_arpwatch-2.1a15-quite-mail.patch
	10_all_arpwatch-2.1a15-ignore-net.patch
	11_all_arpwatch-2.1a15-secure-tmp.patch
	12_all_arpwatch-2.1a15-defalt-dir-in-manpages.patch
	13_all_arpwatch-2.1a15-scripts-awk.patch
	14_all_arpwatch-2.1a15-paths-fix.patch
	15_all_arpwatch-2.1a15-fix-dead-lock.patch
	16_all_arpwatch-2.1a15-additional-manpages-cleanups.patch
	17_all_arpwatch-2.1a15-restart.patch
	18_all_arpwatch-2.1a15-nofork.patch
	19_all_arpwatch-2.1a15-nonewstation.patch
	20_all_arpwatch-2.1a15-noreversedns-resolve.patch
	21_all_arpwatch-2.1a15-pid-filename.patch
	22_alpine_bihourly_script.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd $_builddir
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub
}

build() {
	cd $_builddir

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make -j1 || return 1
}

package() {
	cd $_builddir
	#make install command wouldn't create directory
	mkdir -p "$pkgdir"/usr/sbin/
	make -j1 DESTDIR="$pkgdir" install
	install -d -o arpwatch "$pkgdir"/var/lib/arpwatch || return 1
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	for files in arp2ethers arpfetch massagevendor bihourly.sh; do
		install -m755 "$_builddir"/$files "$pkgdir"/usr/sbin
	done
}

ethercodes() {
	cd $_builddir
	pkgdesc="$pkgname ethernet codes"
	mkdir -p "$subpkgdir"/usr/share/$pkgname/awk
	install -Dm644 "$_builddir"/ethercodes.dat "$subpkgdir"/usr/share/$pkgname/ethercodes.dat
	for f in "$_builddir"/*.awk; do
		install -Dm644 $f "$subpkgdir"/usr/share/$pkgname/awk/$f
	done
}




md5sums="cebfeb99c4a7c2a6cee2564770415fe7  arpwatch.tar.gz
df4f7b1b785ea9f92f917442690a5677  arpwatch.confd
0378428801a55e52d9f54c21663bb0b7  arpwatch.initd
05c30c8d960d6b87b2ffc9e414bb9e2d  01_all_arpwatch-2.1a15-manpages.patch
7097d5d57a4a5897099230b5eb576dfd  02_all_arpwatch-2.1a15-srcdir.patch
0fa77a4adc8421a95a6bcf424252efca  03_all_arpwatch-2.1a15-getopt.patch
2ea549bd6b57994eb8564980f2c19eb4  04_all_arpwatch-2.1a15-sendmail-cmdline-opt.patch
d5730ced07035ad493df64bedac59e4c  05_all_arpwatch-2.1a15-promiscuous-mode.patch
fe051d4b54f7c6cd831bb2aadec445a7  06_all_arpwatch-2.1a15-bogons-report.patch
c5b855635a9a6d0a484b70dbdc3448bc  07_all_arpwatch-2.1a15-specify-mail.patch
93fa41c3efa98eb65c5a6f03b4185635  08_all_arpwatch-2.1a15-drop-priveleges.patch
7fb44f7711cbbbdb32f9258675bb6845  09_all_arpwatch-2.1a15-quite-mail.patch
b12be2993e6bf7944f8c313464827c3e  10_all_arpwatch-2.1a15-ignore-net.patch
ea0755f853879d7807417d298cf16ca2  11_all_arpwatch-2.1a15-secure-tmp.patch
c052ebf34654337fb71d3a7534e9eeac  12_all_arpwatch-2.1a15-defalt-dir-in-manpages.patch
59e995e8897089276719eaf504121f6d  13_all_arpwatch-2.1a15-scripts-awk.patch
da5e87b06bb5a12edc605f2cb6ef86f3  14_all_arpwatch-2.1a15-paths-fix.patch
0aa0a10b9158101a56471397e5c0ab60  15_all_arpwatch-2.1a15-fix-dead-lock.patch
9e033a8e9908974af9ed992bcacd4ea9  16_all_arpwatch-2.1a15-additional-manpages-cleanups.patch
152e16f44a419782b54c4d737098386b  17_all_arpwatch-2.1a15-restart.patch
5adc4ee0193b99261be84105860a0771  18_all_arpwatch-2.1a15-nofork.patch
132e80dadf4bc130df69930a691323dd  19_all_arpwatch-2.1a15-nonewstation.patch
6214671686599ba7102371a2754a691f  20_all_arpwatch-2.1a15-noreversedns-resolve.patch
4fae1ab6cb45dd81d50e9e7f474a1ad7  21_all_arpwatch-2.1a15-pid-filename.patch
3e427671678696b622763bc81acfa907  22_alpine_bihourly_script.patch"
sha256sums="c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898  arpwatch.tar.gz
1e81df8d0139d2860b36e8a73e3700ce613bbf588bbd21b9135c5e4f9f64a164  arpwatch.confd
cb3b97667d06ced14dd3325d7c12a4f78aea108381caf207316dbb7c9019b31b  arpwatch.initd
ee2aad981f402321960e297ce84df2ca06dbc1e58b63e3d0b62678030efef26c  01_all_arpwatch-2.1a15-manpages.patch
2053a486c2e2cb50ebaea1a3f677c0939ee80ae899e944940ea7ec8fbed67877  02_all_arpwatch-2.1a15-srcdir.patch
33c5c469e0e3b2cd135f2246c1b1c558a01dbf8ccaa9120220177c2cda314b87  03_all_arpwatch-2.1a15-getopt.patch
c35817ecfbfe3bb0a6f08f453a100435a8cc8ae3d9e8c59a613d39253281717b  04_all_arpwatch-2.1a15-sendmail-cmdline-opt.patch
bd048ce3113b724d9384786002e218a221361d57c9484742348bb2c9219e5518  05_all_arpwatch-2.1a15-promiscuous-mode.patch
c0cfe555a90e915e7d50a165a93cf27ab7f3a831eb912e9a40ead83f1b321595  06_all_arpwatch-2.1a15-bogons-report.patch
1e59bd9dd872fb0fcfa1d95e00adbf9ac98848cb0b78d6ed3263b73ec088c61c  07_all_arpwatch-2.1a15-specify-mail.patch
059c73eb408baa587854e1496bfb9c6ba2268950e9d1af787fe1527a7c3b99c6  08_all_arpwatch-2.1a15-drop-priveleges.patch
eb5717eb4073bb236ad3cc5821b22036a5998382478b4a2c442867a5a9ab9e14  09_all_arpwatch-2.1a15-quite-mail.patch
35da615a4e830bac2d7588b3d39968d7521424013e726d4c5a79aba0e1a7d152  10_all_arpwatch-2.1a15-ignore-net.patch
319855bbaa23fc1b5312f766f2bcbc5edb69d156f5a77ab83cffe22b84e44d3e  11_all_arpwatch-2.1a15-secure-tmp.patch
6e718eb5b98db216b21d630531fd3c574a0a6e4eebe160593cc8924cb0c686d9  12_all_arpwatch-2.1a15-defalt-dir-in-manpages.patch
901442740ede2701b240bd25a1b7afbacf5cb8afd77b5c59fa0b4fd9d225a54c  13_all_arpwatch-2.1a15-scripts-awk.patch
d7abb5df788b4d86fa8a92ac5c2a9495af0d17c343faa8bf7452957c5e19ae30  14_all_arpwatch-2.1a15-paths-fix.patch
3996632264b656b7dce0bd4fb8ac9f8e25a3ecbc148a16cc00dced4b6e24d53e  15_all_arpwatch-2.1a15-fix-dead-lock.patch
64520f39285838decddde166999763e2e0a53098d0f89f026629474f9bd902bc  16_all_arpwatch-2.1a15-additional-manpages-cleanups.patch
833bf93899bc236551679df149adc31e31c4338250dab8bbf98f13c479f316d6  17_all_arpwatch-2.1a15-restart.patch
84537f795ed6f5766ee1a552d1e49ee2b5cf13668e64afa0ac11fef76b97ed08  18_all_arpwatch-2.1a15-nofork.patch
f88728dbcf0adcc2104b294bd7bc8a52fceabf93baa4d7f1a7b63e28ac2dfad3  19_all_arpwatch-2.1a15-nonewstation.patch
5c62aa5508da7bf061aa9629a9dab68ce945e68bafb24ab30c3cdea56f50c3a5  20_all_arpwatch-2.1a15-noreversedns-resolve.patch
54811b365f379522306a36eabc89c3c83cd9ddaa9fc8acd2fea84cff442807b9  21_all_arpwatch-2.1a15-pid-filename.patch
487624519a39ddbf8c6cad277c5cd0f998228bd222468398c3ba99c715a0d385  22_alpine_bihourly_script.patch"
sha512sums="f770b5b7954afe910dafb016e6e886a4e785564bcdc0ea0de9d7b1ca6a9a0b219a9d1b50b6f42a67afc2f836e782e8ff85ba5780583015d62c9694ac53f0bf90  arpwatch.tar.gz
854f6361bf02586516db4f50afdee729c047cd788985f72f475e592e0e744c24d7d765f0391d733dbf417048c26b6d43c00eb63c58e6798bdb2366b93cbfe03a  arpwatch.confd
4914342692657ca60a1f24930b9ade027330ba98c77e13393c0f453a09fbcd666e92e67a69a37e3eebc210bb6c87f632495be1ea5e743dac640fca57b5dcadff  arpwatch.initd
969e956c4fd192d35ce4f23a1f1461eb94a28a8d1e18845d3b099f8833dece003105b415af0a51b4d50221ded4d7434a49bba0ef7f3cac71fda9317b5edeaac3  01_all_arpwatch-2.1a15-manpages.patch
427a55b7599b8c897f1eae1b8f70b9eaa8e692636b666bf2a3a8703d8227c96e29cdcde8186ebcdcff63d902a919cde660ed6d02f9b5dc650ea9fe23afa44a5f  02_all_arpwatch-2.1a15-srcdir.patch
04ab5ed5e1097901e80d70925936a2ecdb7e1d815b627cbfa246a15a4fb7cbca59b9be04840c694f71c0ff8e2f3201a6047b4fbbb9e62687e7d95ea29c5e6ae4  03_all_arpwatch-2.1a15-getopt.patch
7b23ff5f15b98c7d4a2cca39597d2481d072a935f5021dea09be9735aaf54f9378957bf4548cbe004af13a340f0b0ee6c7db44d44cb3605b3d16fd3c08c06897  04_all_arpwatch-2.1a15-sendmail-cmdline-opt.patch
b4b4ce55ec8b2dba7ce9f49eb77874d8ada26322174a9032176ce28f52edd11edf0fbf16f2a48d974b145fa3e8a10fbf7f1ae72169336d4ed219d41da18007eb  05_all_arpwatch-2.1a15-promiscuous-mode.patch
3b637cbb8a969a43d737ce3a60c4213ed48db7c279cc4776632239d1bd70e150f88e3fee5f14367b1b9fc26a77f512fd5a6d361ce4303a9099ee3b2fb7cca28e  06_all_arpwatch-2.1a15-bogons-report.patch
0a36a7dcb10870735065b50c5979933217f479c91c6749d4ebabacb666a6dd25c4a767094f215c72cbd9fffd5568a0d2dd16ab36446d2bb2d55595801854e0cd  07_all_arpwatch-2.1a15-specify-mail.patch
254ac6d166014a49878bea82db26a61a944348633c81b361b2ab54cd959d7540695c2e96b97c666a2af654b0c30dc2eec56749da5cad8558be6d3cc813f76d31  08_all_arpwatch-2.1a15-drop-priveleges.patch
87bac2fe654e51940d0a8f6ce4131aef8c2c5db10ec73c92c6a4384bb797666beb8d3180895712a2e602fa513daded362cb20f35815563da7ad9a4a6f053d19d  09_all_arpwatch-2.1a15-quite-mail.patch
9f626f5d824c8706af7d5e53f0e5743a606c0ed0ef903f5f721457da6139a19bc39a3546d750d70f90f506d6f03ea7a37b1ff48aca35f49a9ffa702e16e8b6d3  10_all_arpwatch-2.1a15-ignore-net.patch
1c9250346896353857904b43e867ffa5de21bfbe3aa03d8678b2844bb6ad8746ad587884c6b8abe479ddc0bc5fdcfee26c746932c947877862c08f532c1608ee  11_all_arpwatch-2.1a15-secure-tmp.patch
5be13ab5b03ae5ffc1edc8b8657b6f903921c3ffe608ca9bd86a8b0c85f54e3114781bf2ef759b5bcf6e93a50cae55584c5054cb1f510423e7a9b052792829b2  12_all_arpwatch-2.1a15-defalt-dir-in-manpages.patch
cc573ea3f4170be7ff711ad0d63d79802111828d7e913c2eca2e9276fc5f6958f55e2c39b61d885084558bf59f2d95a7c6e3f92f65ac0310ff66505ba4229a57  13_all_arpwatch-2.1a15-scripts-awk.patch
456f3e42f64022cc9999efeaf4b8b7a759a9745e88ff059785ece43a85e2edc8bf56cee1b03c79f90fa9cbda6957cfec61eb40d1db4e03e214c03dcacf749103  14_all_arpwatch-2.1a15-paths-fix.patch
e5145f3f8d7c921148af25844d354bdc83dc8a8fe2e392155147dea6c168000c2e30a69dce902002c82746d918757e107ac2a9389e52ef4b550fb4f26b285155  15_all_arpwatch-2.1a15-fix-dead-lock.patch
e6f5571f8d4823c56f68ea13267f217cc60a9481cf08dfe632124593f8e3a49d3c7fb57c118490b126e2e37eed893470c6b92a079e680b0a03b6d0ffbb10e896  16_all_arpwatch-2.1a15-additional-manpages-cleanups.patch
76c971bd8ce3aec9a6e72f6192ff7f77a5a4b054fad9db4ed29344b0a9b76e07b188ac78b3de654e82de7276ddc877a7f9bbd4f90dd74454a08fd7a5fd2f379c  17_all_arpwatch-2.1a15-restart.patch
91f01db73b7979464db9e0616cfc2a19c950c65f1409342220e1c6e7b22716827b681cb03ede88644e67d81efc38af32a1fd372151474e9b917abb9e13cdafdd  18_all_arpwatch-2.1a15-nofork.patch
5322d2ea02f300d2be2cd17fdf7154cfd6e775376d56c9ad4bdc520196b533060d6602ebb7a02bb1b4088afccb6c843ead3d01b9e0928125fadcdd4d1efadc88  19_all_arpwatch-2.1a15-nonewstation.patch
fd7231744f8025dbcc0bec65ffc02933e0d14717a824187a955a55509316f8667b11bcc4efe847a5002519337b3cc8e778e216ebbb5ad2af504021ea61df4380  20_all_arpwatch-2.1a15-noreversedns-resolve.patch
11da1ec9cce70f2f9fb0657e3bbc2ca9cbad68a292205dfb01effd15643f0aeb693f544f2f8d308b7c3a4901de0a0f91e33676e40cb39dda2314e11097c1eae3  21_all_arpwatch-2.1a15-pid-filename.patch
6823fee4d2190fcd4003c4e0940b05725fb3c408b2ff1f4af39dd5ae29cee05e7211274dbcc06b78931e5cb36e9893a8a9de6e924a9d54a99410bcdf9e6591bb  22_alpine_bihourly_script.patch"