Changeset d0796d0 in freewrt for package/collectd
- Timestamp:
- Nov 6, 2006, 11:25:19 PM (19 years ago)
- Children:
- 350bab1
- Parents:
- 2f3f542
- Location:
- package/collectd
- Files:
-
- 1 added
- 3 edited
-
Makefile (modified) (2 diffs)
-
files/collectd.init (modified) (1 diff)
-
ipkg/collectd.control (modified) (1 diff)
-
ipkg/collectd.postinst (added)
Legend:
- Unmodified
- Added
- Removed
-
package/collectd/Makefile
r2f3f542 rd0796d0 9 9 PKG_NAME:= collectd 10 10 PKG_VERSION:= 3.9.4 11 PKG_RELEASE:= 111 PKG_RELEASE:= 2 12 12 PKG_MD5SUM:= 1e5cab09394e0e5a1e5b3f8c923858a3 13 PKG_INIT:= 75 13 14 14 15 PKG_SOURCE_URL:= http://verplant.org/collectd/files 15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz16 16 17 17 include $(TOPDIR)/mk/package.mk … … 95 95 install -d -m0755 $(IDIR_COLLECTD)/var/lib/collectd 96 96 install -d -m0755 $(IDIR_COLLECTD)/var/run 97 $(CP) ./files/collectd.init $(IDIR_COLLECTD)/etc/init.d/S80collectd 97 $(INSTALL_BIN) ./files/collectd.init \ 98 $(IDIR_COLLECTD)/etc/init.d/S$(PKG_INIT)collectd 98 99 $(CP) $(WRKINST)/usr/sbin/collectd $(IDIR_COLLECTD)/usr/sbin/ 99 100 $(CP) $(WRKINST)/usr/lib/collectd/*.so $(IDIR_COLLECTD)/usr/lib/collectd/ -
package/collectd/files/collectd.init
r2f3f542 rd0796d0 1 1 #!/bin/sh 2 2 3 BINARY="/usr/sbin/collectd" 4 PIDFILE="/var/run/collectd.pid" 5 DATADIR="/var/lib/collectd" 3 . /etc/rc.conf 6 4 7 [ -x "$BINARY" ] || exit 1; 8 9 if [ -e "$PIDFILE" ] 10 then 11 kill $(cat "$PIDFILE") 2>/dev/null 12 sleep 1 13 fi 14 15 [ -d "$DATADIR" ] || mkdir -p "$DATADIR"; 16 17 $BINARY 5 case $1 in 6 autostart) 7 test x"${collectd:-NO}" = x"NO" && exit 0 8 exec $0 start 9 ;; 10 start) 11 [ -d /var/lib/collectd ] || mkdir -p /var/lib/collectd 12 collectd 13 ;; 14 stop) 15 killall collectd 16 ;; 17 restart) 18 $0 stop 19 $0 start 20 ;; 21 *) 22 echo "Usage: $0 {start | stop | restart}" 23 exit 1 24 ;; 25 esac 26 exit $? -
package/collectd/ipkg/collectd.control
r2f3f542 rd0796d0 2 2 Priority: optional 3 3 Section: console 4 Maintainer: Florian Forster <octo@verplant.org>5 Source: http://verplant.org/collectd/6 4 Description: System statistics collection daemon
Note:
See TracChangeset
for help on using the changeset viewer.
