[packages] reintroduce fakeidentd (#11559)
In the transition from WhiteRussian to Kamikaze, the fakeidentd package was dropped, citing its incorporation into the updated Busybox. However, the Busybox implementation doesn't support the -r switch, which is a bit silly, since it's pretty much fakeidentd's raison d'etre. This patch restores the fakeidentd package, with an initscript that uses the -r option. git-svn-id: svn://svn.openwrt.org/openwrt/packages@32566 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b3e8f51a2e
commit
aaf9bd71cc
46
net/fakeidentd/Makefile
Normal file
46
net/fakeidentd/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
#
|
||||
# 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))
|
12
net/fakeidentd/files/fakeidentd.init
Normal file
12
net/fakeidentd/files/fakeidentd.init
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006-2012 OpenWrt.org
|
||||
|
||||
START=85
|
||||
|
||||
start() {
|
||||
service_start /usr/sbin/fakeidentd -r
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/sbin/fakeidentd
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user