diff --git a/net/ap-utils/Makefile b/net/ap-utils/Makefile new file mode 100644 index 00000000000..5841f27bc9f --- /dev/null +++ b/net/ap-utils/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +COMMENT= "wireless access point configuration tools" + +DISTNAME= ap-utils-1.3 +CATEGORIES= net + +HOMEPAGE= http://ap-utils.polesye.net/ +MAINTAINER= Chris Kuethe + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://ap-utils.uk.polesye.net/files/ \ + http://web.cs.cmu.edu/~dpelleg/download/ \ + http://ap-utils.polesye.net/files/ +EXTRACT_SUFX= .tar.bz2 + +MODULES= gettext iconv + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --without-included-gettext \ + --with-libiconv-prefix=${LOCALBASE} \ + --with-libintl-prefix=${LOCALBASE} + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/systrace/ + ${INSTALL_DATA} files/bin_ap_config ${PREFIX}/share/examples/systrace/ + +.include diff --git a/net/ap-utils/distinfo b/net/ap-utils/distinfo new file mode 100644 index 00000000000..0a3bfe43273 --- /dev/null +++ b/net/ap-utils/distinfo @@ -0,0 +1,4 @@ +# $OpenBSD: distinfo,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +MD5 (ap-utils-1.3.tar.bz2) = 880e3386cc06346a33be7fdbbb7f10d8 +RMD160 (ap-utils-1.3.tar.bz2) = afbd8a8744f2007d77c2169df5ef2037ad28df88 +SHA1 (ap-utils-1.3.tar.bz2) = 46747fee62d5a1b29404789bfc2e83e85876645e diff --git a/net/ap-utils/files/bin_ap_config b/net/ap-utils/files/bin_ap_config new file mode 100644 index 00000000000..65046a265e4 --- /dev/null +++ b/net/ap-utils/files/bin_ap_config @@ -0,0 +1,52 @@ +# $OpenBSD: bin_ap_config,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +Policy: /usr/local/bin/ap-config, Emulation: native + native-__sysctl: permit + native-bind: sockaddr eq "inet-[0.0.0.0]:0" then permit + native-break: permit + native-close: permit + native-exit: permit + native-fcntl: permit + native-fork: permit + native-fsread: filename eq "$HOME/.ap-config" then permit + native-fsread: filename eq "$HOME/.terminfo" then permit + native-fsread: filename eq "$HOME/.terminfo.db" then permit + native-fsread: filename eq "/etc/malloc.conf" then permit + native-fsread: filename eq "/usr/X11R6/lib" then permit + native-fsread: filename eq "/usr/lib" then permit + native-fsread: filename eq "/usr/lib/libc.so.29.0" then permit + native-fsread: filename eq "/usr/lib/libmenu.so.2.0" then permit + native-fsread: filename eq "/usr/lib/libncurses.so.9.0" then permit + native-fsread: filename eq "/usr/libexec/ld.so" then permit + native-fsread: filename eq "/usr/local/lib" then permit + native-fsread: filename eq "/usr/share/misc/terminfo.db" then permit + native-fsread: filename eq "/var/run/ld.so.hints" then permit + native-fstat: permit + native-fstatfs: permit + native-fswrite: filename eq "$HOME/.ap-config" then permit + native-getdirentries: permit + native-getegid: permit + native-geteuid: permit + native-getgid: permit + native-gettimeofday: permit + native-getuid: permit + native-ioctl: permit + native-issetugid: permit + native-lseek: permit + native-madvise: permit + native-mmap: permit + native-mprotect: permit + native-munmap: permit + native-nanosleep: permit + native-pipe: permit + native-poll: permit + native-pread: permit + native-read: permit + native-recvfrom: permit + native-sendto: sockaddr match "inet-*:161" then permit + native-setitimer: permit + native-setsockopt: permit + native-sigaction: permit + native-sigprocmask: permit + native-socket: sockdom eq "AF_INET" and socktype eq "SOCK_DGRAM" then permit + native-wait4: permit + native-write: permit diff --git a/net/ap-utils/patches/patch-configure b/net/ap-utils/patches/patch-configure new file mode 100644 index 00000000000..0ab82e6fa0b --- /dev/null +++ b/net/ap-utils/patches/patch-configure @@ -0,0 +1,21 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +--- configure.orig Thu Jan 16 21:22:25 2003 ++++ configure Thu Jan 16 21:23:25 2003 +@@ -3881,7 +3881,7 @@ else + #include "confdefs.h" + #include + extern int _nl_msg_cat_cntr; +-extern int *_nl_domain_bindings; ++extern int *_nl_domain_bindings__; + extern + #ifdef __cplusplus + "C" +@@ -3889,7 +3889,7 @@ extern + const char *_nl_expand_alias (); + int main() { + bindtextdomain ("", ""); +-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0) ++return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings__ + *_nl_expand_alias (0) + ; return 0; } + EOF + if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then diff --git a/net/ap-utils/patches/patch-lib_Makefile_in b/net/ap-utils/patches/patch-lib_Makefile_in new file mode 100644 index 00000000000..6b632443b73 --- /dev/null +++ b/net/ap-utils/patches/patch-lib_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-lib_Makefile_in,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +--- lib/Makefile.in.orig Sun Jan 19 14:46:59 2003 ++++ lib/Makefile.in Sun Jan 19 14:47:12 2003 +@@ -106,7 +106,7 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIB + USE_NLS = @USE_NLS@ + VERSION = @VERSION@ + +-CFLAGS = -I../intl ++CFLAGS = @CFLAGS@ + + noinst_LIBRARIES = libap.a + diff --git a/net/ap-utils/patches/patch-lib_ap-utils_h b/net/ap-utils/patches/patch-lib_ap-utils_h new file mode 100644 index 00000000000..a24fe4d3f21 --- /dev/null +++ b/net/ap-utils/patches/patch-lib_ap-utils_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-lib_ap-utils_h,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +--- lib/ap-utils.h.orig Sun Jan 19 14:50:08 2003 ++++ lib/ap-utils.h Sun Jan 19 14:50:19 2003 +@@ -46,7 +46,7 @@ + + /* GNU gettext stuff*/ + #include +-#include ++#include + #define _(String) gettext (String) + + #define TITLE "Wireless Access Point Utilites for Unix" diff --git a/net/ap-utils/patches/patch-src_Makefile_in b/net/ap-utils/patches/patch-src_Makefile_in new file mode 100644 index 00000000000..c5d2da3bd19 --- /dev/null +++ b/net/ap-utils/patches/patch-src_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +--- src/Makefile.in.orig Sun Jan 19 14:47:17 2003 ++++ src/Makefile.in Sun Jan 19 14:47:29 2003 +@@ -106,7 +106,7 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIB + USE_NLS = @USE_NLS@ + VERSION = @VERSION@ + +-CFLAGS = ++CFLAGS = @CFLAGS@ + DEFS = -DLOCALEDIR=\"$(datadir)/locale\" -DHAVE_CONFIG_H + INCLUDES = -I../lib -I.. -I../intl + diff --git a/net/ap-utils/pkg/DESCR b/net/ap-utils/pkg/DESCR new file mode 100644 index 00000000000..90c6263cf91 --- /dev/null +++ b/net/ap-utils/pkg/DESCR @@ -0,0 +1,18 @@ +Wireless Access Point Utilites for Unix + +This is a set of utilites to configure and monitor Wireless Access Points +under Unix using SNMP. This package includes three utilities: + +ap-mrtg - to get stats from AP and return it in MRTG format; +ap-trapd - to receive, parse and log trap messages from AP; +ap-config - to configure and get stats from Atmel-MIB based + APs and devices that support IEEE 802.11 MIB and + NWN DOT11EXT MIB; + +Supported Hardware + +ap-utils probably works with all Access Points based on the Atmel chipset. +It may also work with APs with IEEE 802.11 MIB and NWN DOT11EXT MIB support, +such as Compex WP11. + +WWW: ${HOMEPAGE} diff --git a/net/ap-utils/pkg/MESSAGE b/net/ap-utils/pkg/MESSAGE new file mode 100644 index 00000000000..9273e4d5e4c --- /dev/null +++ b/net/ap-utils/pkg/MESSAGE @@ -0,0 +1,6 @@ ++------------ +| The ap-config systrace sample policy has been installed into +| ${PREFIX}/share/examples/systrace. Please view this file +| and change the policy to meet your needs. You can install this +| file into /etc/systrace or your ~/.systrace directory. ++------------ diff --git a/net/ap-utils/pkg/PLIST b/net/ap-utils/pkg/PLIST new file mode 100644 index 00000000000..85fb9f43bfe --- /dev/null +++ b/net/ap-utils/pkg/PLIST @@ -0,0 +1,11 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/01/20 17:15:57 sturm Exp $ +bin/ap-config +bin/ap-mrtg +man/man8/ap-config.8 +man/man8/ap-mrtg.8 +man/man8/ap-trapd.8 +sbin/ap-trapd +share/examples/systrace/bin_ap_config +share/locale/fr/LC_MESSAGES/ap-utils.mo +share/locale/pl/LC_MESSAGES/ap-utils.mo +share/locale/uk/LC_MESSAGES/ap-utils.mo