fix dependency on libnotimpl, which has no package, so make it a build time dependenc...
[openwrt/svn-archive/archive.git] / admin / syslog-ng / Makefile
index 1ef4e72f4948e611308509c3d08d04632735cf1f..9daeede7d2c721d06a47ccb05a21efcf91842f4a 100644 (file)
@@ -20,7 +20,6 @@ PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
-PKG_INIT_LEVEL:=60
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -53,12 +52,12 @@ $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
 endef
 
 define Package/syslog-ng/install       
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/syslog-ng $(1)/usr/sbin/
-       install -d -m0755 $(1)/etc/init.d
-       install -m0755 ./files/syslog-ng.init $(1)/etc/init.d/S$(PKG_INIT_LEVEL)syslog-ng
-       install -d -m0755 $(1)/etc/syslog-ng
-       install -m0644 ./files/syslog-ng.conf $(1)/etc/syslog-ng/
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
+       $(INSTALL_DIR) $(1)/etc/syslog-ng
+       $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc/syslog-ng/
 endef
 
 $(eval $(call BuildPackage,syslog-ng))