summaryrefslogtreecommitdiff
path: root/package/fakeidentd
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/fakeidentd
Initial import
Diffstat (limited to 'package/fakeidentd')
-rw-r--r--package/fakeidentd/Config.in8
-rw-r--r--package/fakeidentd/Makefile31
-rw-r--r--package/fakeidentd/files/fakeidentd.init26
-rw-r--r--package/fakeidentd/ipkg/fakeidentd.control4
-rw-r--r--package/fakeidentd/ipkg/fakeidentd.postinst4
5 files changed, 73 insertions, 0 deletions
diff --git a/package/fakeidentd/Config.in b/package/fakeidentd/Config.in
new file mode 100644
index 000000000..68a8d33ff
--- /dev/null
+++ b/package/fakeidentd/Config.in
@@ -0,0 +1,8 @@
+config ADK_PACKAGE_FAKEIDENTD
+ prompt "fakeidentd........................ A static, secure identd."
+ tristate
+ default n
+ help
+ A static secure identd, only one source file.
+
+ http://www.guru-group.fi/~too/sw/releases/
diff --git a/package/fakeidentd/Makefile b/package/fakeidentd/Makefile
new file mode 100644
index 000000000..75760a250
--- /dev/null
+++ b/package/fakeidentd/Makefile
@@ -0,0 +1,31 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= fakeidentd
+PKG_VERSION:= 2.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= ebf398bd1843a1fd8c71f5fcf4a6e4f7
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+MASTER_SITES:= http://distfiles.gentoo.org/distfiles/
+
+WRKDIST= ${WRKDIR}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,FAKEIDENTD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-build:
+ ${TARGET_CC} -o ${WRKBUILD}/${PKG_NAME} ${WRKBUILD}/identd.c
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_FAKEIDENTD}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_FAKEIDENTD}/etc/init.d
+ ${INSTALL_BIN} ${WRKBUILD}/fakeidentd ${IDIR_FAKEIDENTD}/usr/sbin/
+ ${CP} ./files/${PKG_NAME}.init \
+ ${IDIR_FAKEIDENTD}/etc/init.d/${PKG_NAME}
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/fakeidentd/files/fakeidentd.init b/package/fakeidentd/files/fakeidentd.init
new file mode 100644
index 000000000..284940a6e
--- /dev/null
+++ b/package/fakeidentd/files/fakeidentd.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#FWINIT 75
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${fakeidentd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ fakeidentd ${fakeidentd_flags}
+ ;;
+stop)
+ killall fakeidentd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/fakeidentd/ipkg/fakeidentd.control b/package/fakeidentd/ipkg/fakeidentd.control
new file mode 100644
index 000000000..6c528b275
--- /dev/null
+++ b/package/fakeidentd/ipkg/fakeidentd.control
@@ -0,0 +1,4 @@
+Package: fakeidentd
+Description: A static, secure identd.
+Section: net
+Priority: optional
diff --git a/package/fakeidentd/ipkg/fakeidentd.postinst b/package/fakeidentd/ipkg/fakeidentd.postinst
new file mode 100644
index 000000000..1a65cf2cc
--- /dev/null
+++ b/package/fakeidentd/ipkg/fakeidentd.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf fakeidentd fakeidentd NO
+add_rcconf fakeidentd_flags fakeidentd_flags "username"