packages: znc: moved to github
[packages.git] / net / fakeidentd / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fakeidentd
11 PKG_VERSION:=2.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).c
15 PKG_SOURCE_URL:=http://distfiles.gentoo.org/distfiles/
16 PKG_MD5SUM:=d26693c1a7c883d1432e05fb6f7ead6e
17 UNPACK_CMD=$(CP) $(DL_DIR)/$(PKG_SOURCE) $(1)/
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/fakeidentd
22   SECTION:=net
23   CATEGORY:=Network
24   TITLE:=A static, secure identd.
25   URL:=http://www.guru-group.fi/~too/sw/releases/
26 endef
27
28 define Package/fakeidentd/description
29         A static secure identd, only one source file.
30 endef
31
32 define Build/Compile
33         $(SHELL) "$(PKG_BUILD_DIR)/$(MAKE_PATH)/$(PKG_SOURCE)" \
34         CC="$(TARGET_CC)" TRG="$(PKG_BUILD_DIR)/$(MAKE_PATH)/$(PKG_NAME)" \
35         $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) \
36         $(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) -DUSE_UNIX_OS
37 endef
38
39 define Package/fakeidentd/install
40         $(INSTALL_DIR) $(1)/usr/sbin
41         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
42         $(INSTALL_DIR) $(1)/etc/init.d
43         $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
44 endef
45
46 $(eval $(call BuildPackage,fakeidentd))