-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinksysmon-1.1.4.ebuild
51 lines (35 loc) · 1.21 KB
/
linksysmon-1.1.4.ebuild
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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="a tool for monitoring Linksys BEFSR41 and BEFSR11 firewalls"
HOMEPAGE="http://woogie.net/linksysmon/"
SRC_URI="http://woogie.net/linksysmon/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="net-analyzer/net-snmp
dev-lang/perl
mail-client/mailx"
# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
#RDEPEND=""
S=${WORKDIR}/${P}
src_compile() {
cd ${S}
perl Makefile.PL PREFIX=${D}/usr || die
emake || die
}
src_install() {
mkdir -p ${D}/etc/init.d ${D}/etc/cron.daily ${D}/etc/logrotate.d ${D}/usr/sbin
cd ${S}
cp etc/linksysmon.conf ${D}/etc/ || die
cp etc/init.d/linksysmon.gentoo ${D}/etc/init.d/linksysmon || die
cp etc/cron.daily/linksysmon-report ${D}/etc/cron.daily/ || die
cp etc/logrotate.d/linksysmon ${D}/etc/logrotate.d/ || die
cp usr/sbin/linksysmon usr/sbin/linksysmon-ez-ipupdate \
usr/sbin/linksysmon-ipchange usr/sbin/linksysmon-report \
usr/sbin/linksysmon-watch ${D}/usr/sbin/ || die
dodoc BUGS CHANGELOG COPYING README TODO
perl Makefile.PL PREFIX=${D}/usr || die
einstall || die
}