diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-09-26 02:09:28 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-09-26 02:09:28 +0000 |
commit | ff7251cf9503b5ceca1d2bbf1e85c6ea3862fbe3 (patch) | |
tree | 1b5beb6288b3dc311e48d5543aa3b5bc1e4da304 /openwrt/package/p910nd/Makefile | |
parent | d85480af2ce972382e3636806efd041bf3d8894f (diff) | |
download | mtk-20170518-ff7251cf9503b5ceca1d2bbf1e85c6ea3862fbe3.zip mtk-20170518-ff7251cf9503b5ceca1d2bbf1e85c6ea3862fbe3.tar.gz mtk-20170518-ff7251cf9503b5ceca1d2bbf1e85c6ea3862fbe3.tar.bz2 |
add p910nd (thanks to Oliver Ertl)
SVN-Revision: 1993
Diffstat (limited to 'openwrt/package/p910nd/Makefile')
-rw-r--r-- | openwrt/package/p910nd/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/openwrt/package/p910nd/Makefile b/openwrt/package/p910nd/Makefile new file mode 100644 index 0000000..e68463c --- /dev/null +++ b/openwrt/package/p910nd/Makefile @@ -0,0 +1,42 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=p910nd +PKG_VERSION:=0.7 +PKG_RELEASE:=1 +PKG_MD5SUM:=7bf752532d26c9106f8039db95df3a6b + +PKG_SOURCE_URL:=http://www.etherboot.org/p910nd +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_CAT:=bzcat +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +PKG_INIT_PRIO=70 + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,P910ND,p910nd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -DLOCKFILE_DIR=\"\\\"/tmp\\\"\"" + touch $@ + +$(IPKG_P910ND): + install -d -m0755 $(IDIR_P910ND)/etc/default + install -m0644 ./files/p910nd.default $(IDIR_P910ND)/etc/default/p910nd + install -d -m0755 $(IDIR_P910ND)/etc/init.d + install -m0755 ./files/p910nd.init $(IDIR_P910ND)/etc/init.d/p910nd + install -d -m0755 $(IDIR_P910ND)/usr/sbin + ln -sf p910nd $(IDIR_P910ND)/etc/init.d/S$(PKG_INIT_PRIO)p910nd + cp -fpR $(PKG_BUILD_DIR)/p910nd $(IDIR_P910ND)/usr/sbin + $(RSTRIP) $(IDIR_P910ND) + $(IPKG_BUILD) $(IDIR_P910ND) $(PACKAGE_DIR) + +mostlyclean: + -$(MAKE) -C $(PKG_BUILD_DIR) clean + rm -rf $(PKG_BUILD_DIR)/.built |