tor: update to 0.3.1.7
[feed/packages.git] / net / fakeidentd / Makefile
1 #
2 # Copyright (C) 2006-2015 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_HASH:=75b321e5d9dddcea2b38035b62ac30f2175ed43f3f187be6da19aaa67c4fe165
17 PKG_MAINTAINER:=Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
18 PKG_LICENSE:=GPL-2.0+
19 UNPACK_CMD=$(CP) $(DL_DIR)/$(PKG_SOURCE) $(1)/
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fakeidentd
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=A static, secure identd.
27 URL:=http://www.guru-group.fi/~too/sw/releases/
28 endef
29
30 define Package/fakeidentd/description
31 A static secure identd, only one source file.
32 endef
33
34 define Build/Compile
35 $(SHELL) "$(PKG_BUILD_DIR)/$(MAKE_PATH)/$(PKG_SOURCE)" \
36 CC="$(TARGET_CC)" TRG="$(PKG_BUILD_DIR)/$(MAKE_PATH)/$(PKG_NAME)" \
37 $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) \
38 $(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) -DUSE_UNIX_OS
39 endef
40
41 define Package/fakeidentd/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46 endef
47
48 $(eval $(call BuildPackage,fakeidentd))