Lines 93-102
Link Here
|
93 |
dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO |
93 |
dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO |
94 |
newdoc EXAMPLE.conf.def EXAMPLE.conf |
94 |
newdoc EXAMPLE.conf.def EXAMPLE.conf |
95 |
|
95 |
|
|
|
96 |
mkdir ${D}/var/ |
97 |
|
98 |
cp ${D}/var/run/snmpd.pid ${D}/var/run/snmptrapd.pid |
99 |
|
96 |
exeinto /etc/init.d |
100 |
exeinto /etc/init.d |
97 |
newexe "${FILESDIR}/snmpd-5.1.rc6" snmpd |
101 |
newexe "${FILESDIR}/snmpd-5.1.rc6" snmpd |
|
|
102 |
sed -e "s|net-snmpd|snmptrapd|g |
103 |
s|snmpd|snmptrapd|g |
104 |
s|SNMPD|SNMPTRAPD|g" \ |
105 |
${FILESDIR}/snmpd-5.1.rc6 > ${D}/etc/init.d/snmptrapd |
106 |
|
98 |
insinto /etc/conf.d |
107 |
insinto /etc/conf.d |
99 |
newins "${FILESDIR}/snmpd-5.1.conf" snmpd |
108 |
newins "${FILESDIR}/snmpd-5.1.conf" snmpd |
|
|
109 |
head -n 7 ${D}/etc/conf.d/snmpd | \ |
110 |
sed -e "s|net-snmpd|snmptrapd|g |
111 |
s|snmpd|snmptrapd|g |
112 |
s|SNMPD|SNMPTRAPD|g" \ |
113 |
> ${D}/etc/conf.d/snmptrapd |
100 |
|
114 |
|
101 |
keepdir /etc/snmp /var/lib/net-snmp |
115 |
keepdir /etc/snmp /var/lib/net-snmp |
102 |
|
116 |
|