diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apache/pwauth |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apache/pwauth')
-rw-r--r-- | www-apache/pwauth/Manifest | 9 | ||||
-rw-r--r-- | www-apache/pwauth/files/pwauth-2.3.10-config.patch | 38 | ||||
-rw-r--r-- | www-apache/pwauth/files/pwauth-2.3.10-makefile.patch | 42 | ||||
-rw-r--r-- | www-apache/pwauth/files/pwauth-strchr.patch | 11 | ||||
-rw-r--r-- | www-apache/pwauth/files/pwauth.pam-include | 6 | ||||
-rw-r--r-- | www-apache/pwauth/metadata.xml | 15 | ||||
-rw-r--r-- | www-apache/pwauth/pwauth-2.3.10.ebuild | 72 |
7 files changed, 193 insertions, 0 deletions
diff --git a/www-apache/pwauth/Manifest b/www-apache/pwauth/Manifest new file mode 100644 index 000000000000..346be50ff7e5 --- /dev/null +++ b/www-apache/pwauth/Manifest @@ -0,0 +1,9 @@ +AUX pwauth-2.3.10-config.patch 1138 SHA256 074c4e6626b695c407862c206c64ae2b008724e0e89a7d5a0e2d6abbde4c2bce SHA512 54fc2be85259c4759017a1d9bb625e2327488f6c21876daf28ef039466d3dd3fd0322cd7fa939201f74bcf9a1e1399b234ad1e92dd9b32d10cf80e299c7df69e WHIRLPOOL e2768119b8de6c3db0496a0032bc67b09f562d97caeaedd92e249d6e452da1ec24d1f3196ce16248062818dfddcbb4d7d5ae20c64afc94307ba83dae3b28aefb +AUX pwauth-2.3.10-makefile.patch 1468 SHA256 187f578a51d9a5bad5fd33540b95709319bddd8971dc90bad567c20013ac6d4f SHA512 59af2f921f443f8bbb872cb38d2d073cc80509295a9d643859b1fb1e71bffb9795688461f15bb77ab87f7f113df56638eb0ae4bf2b59ab860fc11aef4dc2a08c WHIRLPOOL d327f5aeb146dbaef0e1f3cef3595954a40444283fcf56f3df25db88785a33d376d2c6a8d3e511050db3d5656c4fb3322eab358a6ff260eb988130925ce3df2e +AUX pwauth-strchr.patch 272 SHA256 40ea7e48ad9d2f1c01fb81e4fc7670afdc14fbda4d82498f8bbaefd8ccc971a4 SHA512 2717de2fd77bea0f2fbba2462b6a252cdb4acfd1e6a61cd3208cda4d283ed719b2f7f0c31090d5e0cde06aa8b6005e0fd78a660554827f0c65bfa8cd3af1e8f8 WHIRLPOOL 364cd5a18343f5bf5098708a0c920d6e3b9bf6adf8e5768f0fab2517c332dbb7ba6fcea6b3b5e7efbb594c1d2d45a269afab134476407c84acd9c57f124311c0 +AUX pwauth.pam-include 174 SHA256 351e55f39d90a4b25369b99fe0444fc6e9eb607fabedf70c8c43cd6192f75067 SHA512 0169ddc1945230570491c5a3e6d21ba521d2b44dde35ff84d5c4def07b7f09c51ddb99c03f401a02a4f913036e1cd8babdfbc38cd5eaa27cccd5c3618cbe17cd WHIRLPOOL 896ed3f78a0adf2dd3e7d67701ae2afed8d61bc100ad80490474b2a39345d2772ac653ce7cba280f6cbe5a1747aa004d073c65917e67b101ae66be5ad194c21a +DIST pwauth-2.3.10.tar.gz 23825 SHA256 267813acccc58d407b735ebfd32ee7ec52726379d0aa3670731d2ea4c9d85906 SHA512 a2f02f2c8b61d87cc0c034952e17f187bbc358506052a31107ccd38a938d59862f0ee18362c84984c900d2986bb35abbbd5877d4cf973a0215a6ec3656a23bff WHIRLPOOL 694fa855c2129c13fa18869bb58eef4a0ca6261e7aa84bf454a567270ae129929aada49474a372b082b9ee1d30c0af83cc44e2351be49eb70b123d5f977f6c8f +EBUILD pwauth-2.3.10.ebuild 1914 SHA256 617d7a8cab7851b4d8403897f5cb2fa609191e1daadd0f7da3fe55556f5ca6ed SHA512 da19048a6f783c9cd088a839c6eb62737bfaa5a096494c80598c05b7a6bef564cda31e81865c957f80252600454750be70d6750458f179cb8edd46892d1e18f7 WHIRLPOOL 4553d19bc4036aaf105e58ff16e69da9c0e3e567eb25b1500fd689f50c3387385fed903cde5c7990616734c7900aaca0d5365008bc6b06d68c6c6da509a33005 +MISC ChangeLog 3285 SHA256 cbd0a5fea279ccd4f74b025dbe4145720585bce81bccf3df9e772b7a92d04d51 SHA512 174a8cb5d0b2034cc4ceef7d1814da55aa17e7c600b02bf84ea69836f0606e614766e68f904eee76509d5a61d20640b2b35223af21c202bf2d03f2361710df0e WHIRLPOOL 46d8a9ed471755631da8a3296f104d1c3d60a1b543b93593441266bf8dc05ecd37dfec289a481a837313ca8ffacd7407faed1745437df0f5ce01cf97fd86d244 +MISC ChangeLog-2015 2782 SHA256 6c3faf4800b2766759bb92a34d460abd379672539a8d7b02d6407968b185d49f SHA512 4b61ba429dc30e23cc5b491ad3d8bbdaba536bdf78c4e52bb86e9c67ffe3279d7c0c9e39e71cfeb592da5672890f26f098586f9e3d104facbc7983f8fce0e540 WHIRLPOOL d4be747e68b07e74251bd8cdf8aca06d92f9eb547e56b8d50b8e028bb7c6947e55f874a5b9f77e441c686232f115b139d57ed5ff94614188d47569f6bb120f7b +MISC metadata.xml 502 SHA256 3c01094972d48b5cd70e100e38b9947a974f73e18620a669ca11e585348129c2 SHA512 57990b021af7f99ad2dfcff6ee111acac263f8624d385b302f455c16d24ebb0dbe95b4e6caad36e10938b79666d2ec23ac1e642919af83c934cce479b1fb54f1 WHIRLPOOL 851e4c615e733212d6978f019b706dd80406f647e0a8ef7697b446213cac854b115102f521651d21f17ed354bdcae3b7d914627a10078fc44918483ca2d072f7 diff --git a/www-apache/pwauth/files/pwauth-2.3.10-config.patch b/www-apache/pwauth/files/pwauth-2.3.10-config.patch new file mode 100644 index 000000000000..03ae3b876d99 --- /dev/null +++ b/www-apache/pwauth/files/pwauth-2.3.10-config.patch @@ -0,0 +1,38 @@ +--- config.h.orig 2013-01-01 19:33:54.053978814 +0400 ++++ config.h 2013-01-01 19:35:09.764049695 +0400 +@@ -112,7 +112,7 @@ + + /* #define SHADOW_NONE /**/ + /* #define SHADOW_BSD /* FreeBSD, NetBSD, OpenBSD, BSDI, OS X */ +-#define SHADOW_SUN /* Linux, Solaris, IRIX */ ++/* #define SHADOW_SUN /* Linux, Solaris, IRIX */ + /* #define SHADOW_JFH /**/ + /* #define SHADOW_MDW /**/ + /* #define SHADOW_AIX /* AIX */ +@@ -245,7 +245,7 @@ + * to change the uid list. + */ + +-#define SERVER_UIDS 30 /* user "wwwrun" on the author's system */ ++/* #define SERVER_UIDS 81 /* user "nobody" */ + + + /* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than +@@ -257,7 +257,7 @@ + * given value will be accepted). + */ + +-#define MIN_UNIX_UID 500 /**/ ++/* #define MIN_UNIX_UID 500 /**/ + + + /* If IGNORE_CASE is defined, the login given is checked in two different +@@ -285,7 +285,7 @@ + * SLEEP_LOCK. SLEEP_TIME defaults to 2 seconds if not defined. + */ + +-#define SLEEP_LOCK "/var/run/pwauth.lock" ++#define SLEEP_LOCK "/var/lock/pwauth.lock" + + + /* If ENV_METHOD is defined, pwauth expects mod_auth_external to be configured diff --git a/www-apache/pwauth/files/pwauth-2.3.10-makefile.patch b/www-apache/pwauth/files/pwauth-2.3.10-makefile.patch new file mode 100644 index 000000000000..a211a06b7231 --- /dev/null +++ b/www-apache/pwauth/files/pwauth-2.3.10-makefile.patch @@ -0,0 +1,42 @@ +--- Makefile.orig 2013-01-01 20:19:30.061522843 +0400 ++++ Makefile 2013-01-01 20:20:00.356551208 +0400 +@@ -2,19 +2,7 @@ + # system. Most of the configurable stuff is in config.h + # + # CC= an ansi-C compiler. If "cc" doesn't work, try "gcc". +-# LIB= libraries to link in. -lcrypt, -lshadow, -lpam sometimes needed. +-# LOCALFLAGS= compiler flags. Usually -g, -O, and stuff like that. +- +-# Settings for author's system (Redhat 6.1) +-CC=gcc +-LIB= -lcrypt +-LOCALFLAGS= -g +- +-# For PAM on Redhat Linux +-# LIB=-lpam -ldl +- +-# For PAM on Solaris or OS X +-# LIB=-lpam ++# LIBS= libraries to link in. -lcrypt, -lshadow, -lpam sometimes needed. + + # -------------------- No User Servicable Parts Below ----------------------- + +@@ -25,16 +13,14 @@ + + .PHONY: clean distclean + +-CFLAGS= $(LOCALFLAGS) +- + pwauth: main.o auth_aix.o auth_bsd.o auth_hpux.o auth_mdw.o auth_openbsd.o \ + auth_pam.o auth_sun.o fail_log.o lastlog.o nologin.o snooze.o + $(CC) -o pwauth $(CFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \ + auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \ +- lastlog.o nologin.o snooze.o $(LIB) ++ lastlog.o nologin.o snooze.o $(LDFLAGS) $(LIBS) + + checkfaillog: checkfaillog.o fail_check.o +- $(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LIB) ++ $(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LDFLAGS) $(LIBS) + + main.o: main.c config.h pwauth.h fail_log.h + auth_aix.o: auth_aix.c config.h pwauth.h diff --git a/www-apache/pwauth/files/pwauth-strchr.patch b/www-apache/pwauth/files/pwauth-strchr.patch new file mode 100644 index 000000000000..0c5d6581c96b --- /dev/null +++ b/www-apache/pwauth/files/pwauth-strchr.patch @@ -0,0 +1,11 @@ +--- main.c.orig 2013-01-01 19:45:32.389626661 +0400 ++++ main.c 2013-01-01 19:45:50.524643637 +0400 +@@ -48,7 +48,7 @@ + char *login, *passwd; + #else + char login[BFSZ+1], passwd[BFSZ+1]; +- char *c, *strchr(); ++ char *c; + #endif + int uid,i; + int status; diff --git a/www-apache/pwauth/files/pwauth.pam-include b/www-apache/pwauth/files/pwauth.pam-include new file mode 100644 index 000000000000..7f4f041b28ac --- /dev/null +++ b/www-apache/pwauth/files/pwauth.pam-include @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth required pam_nologin.so +auth include system-auth +account include system-auth +password include system-auth +session include system-auth diff --git a/www-apache/pwauth/metadata.xml b/www-apache/pwauth/metadata.xml new file mode 100644 index 000000000000..9fe5ac7f61ed --- /dev/null +++ b/www-apache/pwauth/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <use> + <flag name="domain-aware">Ignore leading domain names in username + (Windows compat)</flag> + <flag name="faillog">Log failed login attempts</flag> + <flag name="ignore-case">Ignore string case in username (mostly Windows + compat)</flag> + </use> + <upstream> + <remote-id type="github">phokz/pwauth</remote-id> + </upstream> +</pkgmetadata> diff --git a/www-apache/pwauth/pwauth-2.3.10.ebuild b/www-apache/pwauth/pwauth-2.3.10.ebuild new file mode 100644 index 000000000000..8bd3806e64a3 --- /dev/null +++ b/www-apache/pwauth/pwauth-2.3.10.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit base flag-o-matic pam toolchain-funcs + +DESCRIPTION="A Unix Web Authenticator" +HOMEPAGE="https://github.com/phokz/pwauth/tree/master/pwauth" +SRC_URI="https://pwauth.googlecode.com/files/${P}.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="faillog pam ignore-case domain-aware" + +DEPEND="pam? ( virtual/pam )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-config.patch" + "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${PN}-strchr.patch" +) + +pkg_setup() { + 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}" + + append-cflags "-DSERVER_UIDS=${PWAUTH_SERVERUIDS}" + append-cflags "-DMIN_UNIX_UID=${PWAUTH_MINUID}" + + if use faillog; then + append-cflags -DFAILLOG_PWAUTH + append-cflags "-DPATH_FAILLOG=\"\\\"${PWAUTH_FAILLOG}\\\"\"" + fi + + if use pam; then + append-cflags -DPAM + append-libs pam + else + append-cflags -DSHADOW_SUN + append-libs crypt + fi + + use ignore-case && append-cflags -DIGNORE_CASE + use domain-aware && append-cflags -DOMAIN_AWARE +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dosbin pwauth unixgroup + fperms 4755 /usr/sbin/pwauth + + use pam && newpamd "${FILESDIR}"/pwauth.pam-include pwauth + + dodoc CHANGES FORM_AUTH INSTALL README +} |