massive Makefile cleanup, add missing 'svn:keywords' property
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5348 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
@ -10,10 +11,10 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=collectd
|
||||
PKG_VERSION:=3.5.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_MD5SUM:=46a4b81e46d3bb58faab1d603649d737
|
||||
|
||||
PKG_SOURCE_URL:=http://verplant.org/collectd/files
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://verplant.org/collectd/files
|
||||
PKG_MD5SUM:=46a4b81e46d3bb58faab1d603649d737
|
||||
PKG_CAT:=zcat
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
@ -25,13 +26,11 @@ define Package/collectd
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Lightweight system statistics collection daemon
|
||||
DESCRIPTION:=Lightweight system statistics collection daemon
|
||||
URL:=http://verplant.org/collectd/
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Configure/Default,--enable-shared \
|
||||
--disable-static \
|
||||
$(call Build/Configure/Default, \
|
||||
--disable-debug \
|
||||
--enable-cpu \
|
||||
--enable-load \
|
||||
@ -52,22 +51,18 @@ define Build/Compile
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
mkdir -p $(PKG_INSTALL_DIR)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
install
|
||||
all install
|
||||
endef
|
||||
|
||||
define Package/collectd/install
|
||||
install -d -m0755 $(1)/etc/init.d
|
||||
install -d -m0755 $(1)/usr/sbin
|
||||
install -d -m0755 $(1)/usr/lib/collectd
|
||||
install -d -m0755 $(1)/var/lib/collectd
|
||||
install -d -m0755 $(1)/var/run
|
||||
install -m0755 ./files/collectd.init $(1)/etc/init.d/collectd
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(1)/usr/sbin/
|
||||
install -d -m0755 $(1)/usr/lib/collectd
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(1)/usr/lib/collectd/
|
||||
install -d -m0755 $(1)/etc/init.d
|
||||
install -m0755 ./files/collectd.init $(1)/etc/init.d/collectd
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,collectd))
|
||||
|
Reference in New Issue
Block a user