From 0075f283ef969948258371b85ba10db1a3c5a370 Mon Sep 17 00:00:00 2001 From: Daniel Gimpelevich Date: Mon, 9 Feb 2015 08:53:44 -0800 Subject: [PATCH] fakeidentd: import from oldpackages Signed-off-by: Daniel Gimpelevich Signed-off-by: Ted Hess --- net/fakeidentd/Makefile | 48 ++++++++++++++++++++++++++++ net/fakeidentd/files/fakeidentd.init | 12 +++++++ 2 files changed, 60 insertions(+) create mode 100644 net/fakeidentd/Makefile create mode 100644 net/fakeidentd/files/fakeidentd.init diff --git a/net/fakeidentd/Makefile b/net/fakeidentd/Makefile new file mode 100644 index 000000000..ce279116d --- /dev/null +++ b/net/fakeidentd/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2006-2015 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 +PKG_MAINTAINER:=Daniel Gimpelevich +PKG_LICENSE:=GPL-2.0+ +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)) diff --git a/net/fakeidentd/files/fakeidentd.init b/net/fakeidentd/files/fakeidentd.init new file mode 100644 index 000000000..4959ef224 --- /dev/null +++ b/net/fakeidentd/files/fakeidentd.init @@ -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 +}