From 7a75390e74a122e8ede22d905eacae9536a93180 Mon Sep 17 00:00:00 2001 From: Aaron Walker Date: Sun, 22 May 2005 20:02:59 +0000 Subject: Initial commit for bug 93271. (Portage version: 2.0.51.22-r1) --- app-admin/nologin/ChangeLog | 10 +++++++ app-admin/nologin/Manifest | 4 +++ app-admin/nologin/files/digest-nologin-20050522 | 1 + app-admin/nologin/metadata.xml | 9 +++++++ app-admin/nologin/nologin-20050522.ebuild | 35 +++++++++++++++++++++++++ 5 files changed, 59 insertions(+) create mode 100644 app-admin/nologin/ChangeLog create mode 100644 app-admin/nologin/Manifest create mode 100644 app-admin/nologin/files/digest-nologin-20050522 create mode 100644 app-admin/nologin/metadata.xml create mode 100644 app-admin/nologin/nologin-20050522.ebuild (limited to 'app-admin') diff --git a/app-admin/nologin/ChangeLog b/app-admin/nologin/ChangeLog new file mode 100644 index 000000000000..3ad11845a39e --- /dev/null +++ b/app-admin/nologin/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-admin/nologin +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/nologin/ChangeLog,v 1.1 2005/05/22 20:02:59 ka0ttic Exp $ + +*nologin-20050522 (22 May 2005) + + 22 May 2005; Aaron Walker +metadata.xml, + +nologin-20050522.ebuild: + Initial commit for bug 93271. + diff --git a/app-admin/nologin/Manifest b/app-admin/nologin/Manifest new file mode 100644 index 000000000000..c6a4974b39b7 --- /dev/null +++ b/app-admin/nologin/Manifest @@ -0,0 +1,4 @@ +MD5 059d3cac51cdfcbb2d588e910e96ec9b nologin-20050522.ebuild 939 +MD5 42574471cc2b0b31c1f9a3c2d77ca505 ChangeLog 276 +MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254 +MD5 c9bacebe6f756f54335279165ee674e0 files/digest-nologin-20050522 67 diff --git a/app-admin/nologin/files/digest-nologin-20050522 b/app-admin/nologin/files/digest-nologin-20050522 new file mode 100644 index 000000000000..421f1549b161 --- /dev/null +++ b/app-admin/nologin/files/digest-nologin-20050522 @@ -0,0 +1 @@ +MD5 63e7752069acb9244d36b6eae9fff38b nologin-20050522.tar.bz2 2096 diff --git a/app-admin/nologin/metadata.xml b/app-admin/nologin/metadata.xml new file mode 100644 index 000000000000..d31152aca840 --- /dev/null +++ b/app-admin/nologin/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + ka0ttic@gentoo.org + Aaron Walker + + diff --git a/app-admin/nologin/nologin-20050522.ebuild b/app-admin/nologin/nologin-20050522.ebuild new file mode 100644 index 000000000000..aa985f98c601 --- /dev/null +++ b/app-admin/nologin/nologin-20050522.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/nologin/nologin-20050522.ebuild,v 1.1 2005/05/22 20:02:59 ka0ttic Exp $ + +inherit toolchain-funcs + +DESCRIPTION="OpenBSD's nologin - politely refuse a login; intended as a replacement shell field (in /etc/passwd) for accounts that have been disabled." +HOMEPAGE="http://www.openbsd.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +src_compile() { + echo "$(tc-getCC) ${CFLAGS} nologin.c -o nologin" + $(tc-getCC) ${CFLAGS} nologin.c -o nologin || die "compilation failed" +} + +src_install() { + doman nologin.8 || die "doman failed" + into / + dosbin nologin || die "dosbin failed" +} + +pkg_postinst() { + einfo + einfo "To use nologin, edit /etc/passwd and replace /bin/false with" + einfo "/sbin/nologin for those accounts." + einfo + einfo "If the file /etc/nologin.txt exists, nologin displays it's" + einfo "contents instead of the default message." + einfo +} -- cgit v1.2.3-65-gdbad