summaryrefslogtreecommitdiff
path: root/openwrt/package/fakeidentd/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-04-13 14:12:04 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-04-13 14:12:04 +0000
commit6e0e080e315ac9fde89495183c939ab5f491ad1c (patch)
tree1c1a532d6d1b0a0a958703319bc78c06f2a10b24 /openwrt/package/fakeidentd/Makefile
parentba8f56b60ddf35305d29f74a77be079233cd0ddb (diff)
downloadmtk-20170518-6e0e080e315ac9fde89495183c939ab5f491ad1c.zip
mtk-20170518-6e0e080e315ac9fde89495183c939ab5f491ad1c.tar.gz
mtk-20170518-6e0e080e315ac9fde89495183c939ab5f491ad1c.tar.bz2
Add fakeidentd a lightweight identd daemon. Fix minor typo in menuconfig for weechat
SVN-Revision: 3631
Diffstat (limited to 'openwrt/package/fakeidentd/Makefile')
-rw-r--r--openwrt/package/fakeidentd/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/openwrt/package/fakeidentd/Makefile b/openwrt/package/fakeidentd/Makefile
new file mode 100644
index 0000000..fa61f35
--- /dev/null
+++ b/openwrt/package/fakeidentd/Makefile
@@ -0,0 +1,37 @@
+# $Id: $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fakeidentd
+PKG_VERSION:=2.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=aa4133981c94c59868344cd3b02e8e19
+
+PKG_SOURCE_URL:=http://distfiles.gentoo.org/distfiles/
+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
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,FAKEIDENTD,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(TARGET_CC) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/identd.c
+ touch $@
+
+$(IPKG_FAKEIDENTD):
+ install -d -m0755 $(IDIR_FAKEIDENTD)/usr/sbin \
+ $(IDIR_FAKEIDENTD)/etc/init.d \
+ $(IDIR_FAKEIDENTD)/etc/default/
+ echo $(whoami) > $(IDIR_FAKEIDENTD)/etc/default/$(PKG_NAME)
+ $(CP) $(PKG_BUILD_DIR)/fakeidentd $(IDIR_FAKEIDENTD)/usr/sbin/
+ $(CP) ./files/$(PKG_NAME).init $(IDIR_FAKEIDENTD)/etc/init.d/$(PKG_NAME)
+ $(RSTRIP) $(IDIR_FAKEIDENTD)
+ $(IPKG_BUILD) $(IDIR_FAKEIDENTD) $(PACKAGE_DIR)
+