summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2007-09-08 17:44:00 +0000
committerBenedikt Boehm <hollow@gentoo.org>2007-09-08 17:44:00 +0000
commitff18ee2096e4fa1da7d16d3b7ff7cffa9f85f654 (patch)
tree963eb2469e2ea47ef0ac397b1efca3e5bcd65d20 /www-apache/pwauth/pwauth-2.3.2.ebuild
parentdepend on apache 2.0; see mod_authnz_external for apache 2.2 (diff)
downloadgentoo-2-ff18ee2096e4fa1da7d16d3b7ff7cffa9f85f654.tar.gz
gentoo-2-ff18ee2096e4fa1da7d16d3b7ff7cffa9f85f654.tar.bz2
gentoo-2-ff18ee2096e4fa1da7d16d3b7ff7cffa9f85f654.zip
version bump; #187739
(Portage version: 2.1.3.7)
Diffstat (limited to 'www-apache/pwauth/pwauth-2.3.2.ebuild')
-rw-r--r--www-apache/pwauth/pwauth-2.3.2.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/www-apache/pwauth/pwauth-2.3.2.ebuild b/www-apache/pwauth/pwauth-2.3.2.ebuild
new file mode 100644
index 000000000000..2130a32349af
--- /dev/null
+++ b/www-apache/pwauth/pwauth-2.3.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/pwauth/pwauth-2.3.2.ebuild,v 1.1 2007/09/08 17:43:59 hollow Exp $
+
+inherit eutils toolchain-funcs pam
+
+DESCRIPTION="A Unix Web Authenticator"
+HOMEPAGE="http://www.unixpapa.com/pwauth/"
+SRC_URI="http://www.unixpapa.com/software/${P}.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="faillog pam ignore-case domain-aware"
+
+DEPEND="pam? ( virtual/pam )"
+
+pkg_setup() {
+ local OPTS
+
+ einfo "You can configure various build time options with ENV variables:"
+ einfo
+ einfo " PWAUTH_FAILLOG Path to logfile for login failures"
+ einfo " (default: /var/log/pwauth.log)"
+ einfo " PWAUTH_SERVERUIDS Comma seperated list of UIDs allowed to run pwauth"
+ einfo " (default: 81)"
+ einfo " PWAUTH_MINUID Minimum UID for which authentication will succeed"
+ einfo " (default: 1000)"
+ einfo
+
+ PWAUTH_FAILLOG="${PWAUTH_FAILLOG:-/var/log/pwauth.log}"
+ PWAUTH_SERVERUIDS="${PWAUTH_SERVERUIDS:-81}"
+ PWAUTH_MINUID="${PWAUTH_MINUID:-1000}"
+
+ OPTS="${OPTS} -DSERVER_UIDS=${PWAUTH_SERVERUIDS}"
+ OPTS="${OPTS} -DMIN_UNIX_UID=${PWAUTH_MINUID}"
+
+ if use faillog; then
+ OPTS="${OPTS} -DFAILLOG_PWAUTH"
+ OPTS="${OPTS} -DPATH_FAILLOG=\"\\\"${PWAUTH_FAILLOG}\\\"\""
+ fi
+
+ if use pam; then
+ OPTS="${OPTS} -DPAM"
+ LDFLAGS="-lpam"
+ else
+ OPTS="${OPTS} -DSHADOW_SUN"
+ LDFLAGS="-lcrypt"
+ fi
+
+ if use ignore-case; then
+ OPTS="${OPTS} -DIGNORE_CASE"
+ fi
+
+ if use domain-aware; then
+ OPTS="${OPTS} -DOMAIN_AWARE"
+ fi
+
+ CC=$(tc-getCC)
+ CFLAGS="${CFLAGS} ${OPTS}"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/pwauth-gentoo.patch
+}
+
+src_install() {
+ dosbin pwauth unixgroup
+ fperms 4755 /usr/sbin/pwauth
+
+ use pam && newpamd "${FILESDIR}"/pwauth.pam-include pwauth
+
+ dodoc CHANGES FORM_AUTH INSTALL README
+}