Add fakeidentd a lightweight identd daemon.
[openwrt.git] / openwrt / package / fakeidentd / Makefile
1 # $Id: $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=fakeidentd
6 PKG_VERSION:=2.2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=aa4133981c94c59868344cd3b02e8e19
9
10 PKG_SOURCE_URL:=http://distfiles.gentoo.org/distfiles/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,FAKEIDENTD,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(TARGET_CC) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/identd.c
26 touch $@
27
28 $(IPKG_FAKEIDENTD):
29 install -d -m0755 $(IDIR_FAKEIDENTD)/usr/sbin \
30 $(IDIR_FAKEIDENTD)/etc/init.d \
31 $(IDIR_FAKEIDENTD)/etc/default/
32 echo $(whoami) > $(IDIR_FAKEIDENTD)/etc/default/$(PKG_NAME)
33 $(CP) $(PKG_BUILD_DIR)/fakeidentd $(IDIR_FAKEIDENTD)/usr/sbin/
34 $(CP) ./files/$(PKG_NAME).init $(IDIR_FAKEIDENTD)/etc/init.d/$(PKG_NAME)
35 $(RSTRIP) $(IDIR_FAKEIDENTD)
36 $(IPKG_BUILD) $(IDIR_FAKEIDENTD) $(PACKAGE_DIR)
37
This page took 0.043784 seconds and 5 git commands to generate.