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