Waldemar Brodkorb 3 недель назад
Родитель
Сommit
c3befcba4c

+ 0 - 41
package/scanlogd/Makefile

@@ -1,41 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include ${ADK_TOPDIR}/rules.mk
-
-PKG_NAME:=		scanlogd
-PKG_VERSION:=		2.2.6
-PKG_RELEASE:=		8
-PKG_HASH:=		4a2621037270f88576c8770261c53761edc875984f126872c880c2a98a8f63fa
-PKG_DESCR:=		portscan logger
-PKG_SECTION:=		net/security
-PKG_DEPENDS:=		libpcap libnet libnids
-PKG_BUILDDEP:=		libpcap libnids libnet
-PKG_URL:=		http://www.openwall.com/scanlogd/
-PKG_SITES:=		http://www.openwall.com/scanlogd/
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-PKG_ARCH_DEPENDS:=	!arm
-PKG_LIBC_DEPENDS:=	uclibc-ng glibc
-
-include ${ADK_TOPDIR}/mk/package.mk
-
-$(eval $(call PKG_template,SCANLOGD,scanlogd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-
-CONFIG_STYLE:=          manual
-INSTALL_STYLE:=         manual
-
-MAKE_FLAGS+=		PCAP_H="-I${STAGING_TARGET_DIR}/usr/include" \
-			NIDS_H="-I${STAGING_TARGET_DIR}/usr/include" \
-			NIDS_L="-L${STAGING_TARGET_DIR}/usr/lib -lnids -lnet -lpcap"
-ALL_TARGET:=		libnids
-
-do-configure:
-	${SED} "s,/var/empty,/tmp/.scanlogd," ${WRKBUILD}/params.h
-	${SED} "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," ${WRKBUILD}/params.h
-
-do-install:
-	${INSTALL_DIR} ${IDIR_SCANLOGD}/usr/sbin
-	${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_SCANLOGD}/usr/sbin/
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 28
package/scanlogd/files/scanlogd.init

@@ -1,28 +0,0 @@
-#!/bin/sh
-#PKG scanlogd
-#INIT 60
-. /etc/rc.conf
-
-case $1 in
-autostop) ;;
-autostart)
-	test x"${scanlogd:-NO}" = x"NO" && exit 0
-	test x"$scanlogd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
-	exec sh $0 start
-	;;
-start)
-	mkdir -p `grep "^scanlogd:" /etc/passwd | cut -d: -f6`
-	/usr/sbin/scanlogd $scanlogd_flags
-	;;
-stop)
-	kill $(pgrep -f /usr/sbin/scanlogd)
-	;;
-restart)
-	sh $0 stop
-	sh $0 start
-	;;
-*)
-	echo "usage: $0 {start | stop | restart}"
-	exit 1
-esac
-exit $?

+ 0 - 6
package/scanlogd/files/scanlogd.postinst

@@ -1,6 +0,0 @@
-#!/bin/sh
-. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf scanlogd NO
-gid=$(get_next_gid)
-add_group scanlogd $gid
-add_user scanlogd $(get_next_uid) $gid /tmp/

+ 0 - 14
package/scanlogd/patches/patch-Makefile

@@ -1,14 +0,0 @@
---- scanlogd-2.2.6.orig/Makefile	2006-03-05 11:03:15.000000000 +0100
-+++ scanlogd-2.2.6/Makefile	2011-01-17 12:03:48.000000000 +0100
-@@ -1,8 +1,8 @@
--CC = gcc
-+CC ?= gcc
- LD = $(CC)
- RM = rm -f
--CFLAGS = -Wall -O2 -fomit-frame-pointer
--LDFLAGS = -s
-+CFLAGS ?= -Wall -O2 -fomit-frame-pointer
-+LDFLAGS ?= -s
- 
- PCAP_H = -I/usr/include/pcap
- PCAP_L = -lpcap

+ 0 - 20
package/scanlogd/patches/patch-params_h

@@ -1,20 +0,0 @@
---- scanlogd-2.2.6.orig/params.h	2006-03-05 11:13:56.000000000 +0100
-+++ scanlogd-2.2.6/params.h	2011-01-17 11:35:06.000000000 +0100
-@@ -19,7 +19,7 @@
-  * An empty directory to chroot to.  The directory and its parent directories
-  * must not be writable by anyone but root.
-  */
--#define SCANLOGD_CHROOT			"/var/empty"
-+#define SCANLOGD_CHROOT			"/tmp/.scanlogd"
- 
- /*
-  * Device to monitor, if you're using libnids or libpcap directly. #undef
-@@ -29,7 +29,7 @@
-  * Recent versions of libpcap support magic device name "any" and recent
-  * libnids supports magic device name "all".
-  */
--#undef SCANLOGD_DEVICE
-+#define SCANLOGD_DEVICE "all"
- 
- /*
-  * Whether we want scanlogd to set the device into promiscuous mode, for