diff options
author | bouyer <bouyer@pkgsrc.org> | 2007-04-13 19:58:56 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2007-04-13 19:58:56 +0000 |
commit | 33697b558d93dfbfa91cf8319bbd6cf8f8dbceb2 (patch) | |
tree | efbbe82a8d9fd98a7d0b9de5313dfe5dc1ccb63a /net | |
parent | 4d203c601cc32bde7d9eaf5d4d17ec4d269db904 (diff) | |
download | pkgsrc-33697b558d93dfbfa91cf8319bbd6cf8f8dbceb2.tar.gz |
Import radiusclient-ng 0.5.5.1.
This client library and basic utilities for performing logins authenticated
by a Radiusd server. All these programs are based on a library which lets
you develop a RADIUS-aware application in less than 50 lines of C code.
It is highly portable and runs on Linux, many BSD variants and Solaris.
Diffstat (limited to 'net')
-rw-r--r-- | net/radiusclient-ng/DESCR | 5 | ||||
-rw-r--r-- | net/radiusclient-ng/Makefile | 28 | ||||
-rw-r--r-- | net/radiusclient-ng/PLIST | 19 | ||||
-rw-r--r-- | net/radiusclient-ng/buildlink3.mk | 27 | ||||
-rw-r--r-- | net/radiusclient-ng/distinfo | 6 | ||||
-rw-r--r-- | net/radiusclient-ng/patches/patch-aa | 73 |
6 files changed, 158 insertions, 0 deletions
diff --git a/net/radiusclient-ng/DESCR b/net/radiusclient-ng/DESCR new file mode 100644 index 00000000000..ea3483dc20a --- /dev/null +++ b/net/radiusclient-ng/DESCR @@ -0,0 +1,5 @@ +This is a port of a client library and basic utilities for performing +logins authenticated by a Radiusd server. All these programs are based +on a library which lets you develop a RADIUS-aware application in less +than 50 lines of C code. It is highly portable and runs on Linux, many +BSD variants and Solaris. diff --git a/net/radiusclient-ng/Makefile b/net/radiusclient-ng/Makefile new file mode 100644 index 00000000000..2af4bcf900d --- /dev/null +++ b/net/radiusclient-ng/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/04/13 19:58:56 bouyer Exp $ + +DISTNAME= radiusclient-ng-0.5.5.1 +CATEGORIES= net +MASTER_SITES= http://download.berlios.de/radiusclient-ng/ \ + http://download2.berlios.de/radiusclient-ng/ + +MAINTAINER= bouyer@NetBSD.org +COMMENT= Client library and basic utilities for Radius authenticated login +HOMEPAGE= http://developer.berlios.de/projects/radiusclient-ng/ + +.include "../../mk/bsd.prefs.mk" + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES + +PKG_SYSCONFSUBDIR= radiusclient-ng +EGDIR= ${PREFIX}/share/examples/radiusclient-ng + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q} + +EGFILES= issue port-id-map radiusclient.conf dictionary dictionary.ascend \ + dictionary.compat dictionary.merit dictionary.sip +.for f in ${EGFILES} +CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} +.endfor + +.include "../../mk/bsd.pkg.mk" diff --git a/net/radiusclient-ng/PLIST b/net/radiusclient-ng/PLIST new file mode 100644 index 00000000000..7ea4201ca89 --- /dev/null +++ b/net/radiusclient-ng/PLIST @@ -0,0 +1,19 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/04/13 19:58:56 bouyer Exp $ +share/examples/radiusclient-ng/dictionary +share/examples/radiusclient-ng/dictionary.ascend +share/examples/radiusclient-ng/dictionary.compat +share/examples/radiusclient-ng/dictionary.merit +share/examples/radiusclient-ng/dictionary.sip +share/examples/radiusclient-ng/issue +share/examples/radiusclient-ng/port-id-map +share/examples/radiusclient-ng/radiusclient.conf +share/examples/radiusclient-ng/servers +include/radiusclient-ng.h +lib/libradiusclient-ng.la +sbin/login.radius +sbin/radacct +sbin/radexample +sbin/radiusclient +sbin/radlogin +sbin/radstatus +@dirrm share/examples/radiusclient-ng diff --git a/net/radiusclient-ng/buildlink3.mk b/net/radiusclient-ng/buildlink3.mk new file mode 100644 index 00000000000..cbfb2b886fd --- /dev/null +++ b/net/radiusclient-ng/buildlink3.mk @@ -0,0 +1,27 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/04/13 19:58:56 bouyer Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +RADIUSCLIENT_NG_BUILDLINK3_MK:= ${RADIUSCLIENT_NG_BUILDLINK3_MK}+ + +.include "../../mk/bsd.fast.prefs.mk" + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= radiusclient-ng +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nradiusclient-ng} +BUILDLINK_PACKAGES+= radiusclient-ng +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}radiusclient-ng + +.if !empty(RADIUSCLIENT_NG_BUILDLINK3_MK:M+) +BUILDLINK_API_DEPENDS.radiusclient-ng+= radiusclient-ng>=0.5.5.1 +BUILDLINK_PKGSRCDIR.radiusclient-ng?= ../../net/radiusclient-ng +BUILDLINK_DEPMETHOD.radiusclient-ng?= build + +. if ${OPSYS} == "FreeBSD" +BUILDLINK_LDADD.radiusclient-ng+= -lmd +BUILDLINK_LDFLAGS.radiusclient-ng?= ${BUILDLINK_LDADD.radiusclient-ng} +. endif +.endif # RADIUSCLIENT_NG_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/net/radiusclient-ng/distinfo b/net/radiusclient-ng/distinfo new file mode 100644 index 00000000000..6e09a54225f --- /dev/null +++ b/net/radiusclient-ng/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/04/13 19:58:56 bouyer Exp $ + +SHA1 (radiusclient-ng-0.5.5.1.tar.gz) = bb8e9619f4c24887e793975e1cd999174cb68de2 +RMD160 (radiusclient-ng-0.5.5.1.tar.gz) = 3476e132fab39aa5cf1e278b9bffd3010abf13e2 +Size (radiusclient-ng-0.5.5.1.tar.gz) = 383855 bytes +SHA1 (patch-aa) = 197f4f966193c6d4cd249029fd6f6c9be7762b0b diff --git a/net/radiusclient-ng/patches/patch-aa b/net/radiusclient-ng/patches/patch-aa new file mode 100644 index 00000000000..97be85c7a38 --- /dev/null +++ b/net/radiusclient-ng/patches/patch-aa @@ -0,0 +1,73 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/04/13 19:58:56 bouyer Exp $ + +--- etc/Makefile.in.orig 2007-04-13 13:44:00.000000000 +0200 ++++ etc/Makefile.in 2007-04-13 13:51:23.000000000 +0200 +@@ -60,7 +60,7 @@ + *) f=$$p;; \ + esac; + am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +-am__installdirs = "$(DESTDIR)$(pkgsysconfdir)" ++am__installdirs = "$(DESTDIR)$(egdir)" + pkgsysconfDATA_INSTALL = $(INSTALL_DATA) + DATA = $(pkgsysconf_DATA) + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +@@ -172,6 +172,7 @@ + sharedstatedir = @sharedstatedir@ + srcdir = @srcdir@ + sysconfdir = @sysconfdir@ ++egdir = $(prefix)/share/examples/radiusclient-ng + target = @target@ + target_alias = @target_alias@ + target_cpu = @target_cpu@ +@@ -229,20 +230,20 @@ + -rm -rf .libs _libs + install-pkgsysconfDATA: $(pkgsysconf_DATA) + @$(NORMAL_INSTALL) +- test -z "$(pkgsysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgsysconfdir)" ++ test -z "$(egdir)" || $(MKDIR_P) "$(DESTDIR)$(egdir)" + @list='$(pkgsysconf_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ +- echo " $(pkgsysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgsysconfdir)/$$f'"; \ +- $(pkgsysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgsysconfdir)/$$f"; \ ++ echo " $(pkgsysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(egdir)/$$f'"; \ ++ $(pkgsysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(egdir)/$$f"; \ + done + + uninstall-pkgsysconfDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgsysconf_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ +- echo " rm -f '$(DESTDIR)$(pkgsysconfdir)/$$f'"; \ +- rm -f "$(DESTDIR)$(pkgsysconfdir)/$$f"; \ ++ echo " rm -f '$(DESTDIR)$(egdir)/$$f'"; \ ++ rm -f "$(DESTDIR)$(egdir)/$$f"; \ + done + tags: TAGS + TAGS: +@@ -281,7 +282,7 @@ + check: check-am + all-am: Makefile $(DATA) + installdirs: +- for dir in "$(DESTDIR)$(pkgsysconfdir)"; do \ ++ for dir in "$(DESTDIR)$(egdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done + install: install-am +@@ -385,12 +386,12 @@ + <$(srcdir)/radiusclient.conf.in >radiusclient.conf + + install-data-local: servers +- $(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir); \ +- echo " $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(pkgsysconfdir)/servers"; \ +- $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(pkgsysconfdir)/servers ++ $(mkinstalldirs) $(DESTDIR)$(egdir); \ ++ echo " $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(egdir)/servers"; \ ++ $(INSTALL) -m 600 $(srcdir)/servers $(DESTDIR)$(egdir)/servers + + uninstall-local: +- rm -f $(pkgsysconfdir)/servers ++ rm -f $(egdir)/servers + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: |