summaryrefslogtreecommitdiffstats
path: root/security/sud
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-11-12 11:50:40 +0000
committerpav <pav@FreeBSD.org>2005-11-12 11:50:40 +0000
commitc2264bc75a539fa1d0f9aa6b9aa055efd8c4f8c7 (patch)
tree06d34dca002b02e50c1ba6b2ecc3bb7ff5349b91 /security/sud
parentef0ea414a77e646fb9f750d02b3858fc1f6a5065 (diff)
downloadFreeBSD-ports-c2264bc75a539fa1d0f9aa6b9aa055efd8c4f8c7.zip
FreeBSD-ports-c2264bc75a539fa1d0f9aa6b9aa055efd8c4f8c7.tar.gz
Sud is a daemon to execute interactive and non-interactive processes with
special (and customizable) privileges in a nosuid environment. It is based on a client/server model and on the ability to pass file descriptors between processes. PR: ports/88354 Submitted by: Vaida Bogdan <vaidab@phenix.rootshell.be>
Diffstat (limited to 'security/sud')
-rw-r--r--security/sud/Makefile41
-rw-r--r--security/sud/distinfo3
-rw-r--r--security/sud/pkg-descr9
-rw-r--r--security/sud/pkg-plist8
4 files changed, 61 insertions, 0 deletions
diff --git a/security/sud/Makefile b/security/sud/Makefile
new file mode 100644
index 0000000..b4d0c5e9
--- /dev/null
+++ b/security/sud/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: sud
+# Date created: 20 Sep 2004
+# Whom: bugghy <bugghy@SAFe-mail.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sud
+PORTVERSION= 1.3
+CATEGORIES= security sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= bugghy@SAFe-mail.net
+COMMENT= Execute processes with special privileges in a nosuid environment
+
+GNU_CONFIGURE= yes
+MAN1= sud.1 suz.1 ilogin.1
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' \
+ ${WRKSRC}/ilogin.1 ${WRKSRC}/sud.1 ${WRKSRC}/login/login.c ${WRKSRC}/sud/main.c
+ @${REINPLACE_CMD} -e 's|/usr/sbin/ilogin|${PREFIX}/ilogin| ; s|/usr/bin/ls|/bin/ls|' \
+ ${WRKSRC}/miscs/sud.conf.sample
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${INSTALL_MAN} ${WRKSRC}/sud.1 ${MAN1PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/suz.1 ${MAN1PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/ilogin.1 ${MAN1PREFIX}/man/man1
+.endif
+
+.for i in issue.suz motd.suz sud.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/miscs/${i} ${PREFIX}/etc
+.endfor
+ @if [ ! -f ${PREFIX}/etc/sud.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/sud.conf.sample ${PREFIX}/etc/sud.conf ; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/security/sud/distinfo b/security/sud/distinfo
new file mode 100644
index 0000000..ffa2ffd
--- /dev/null
+++ b/security/sud/distinfo
@@ -0,0 +1,3 @@
+MD5 (sud-1.3.tar.gz) = f44ca2810ff72b84ad8a10cd62752098
+SHA256 (sud-1.3.tar.gz) = c4fdf9dfc7a58daf75cb37d2bc4d10d3767216e2b8e4861a87c2d274bac252a0
+SIZE (sud-1.3.tar.gz) = 117542
diff --git a/security/sud/pkg-descr b/security/sud/pkg-descr
new file mode 100644
index 0000000..862e0e7
--- /dev/null
+++ b/security/sud/pkg-descr
@@ -0,0 +1,9 @@
+Sud is a daemon to execute interactive and non-interactive
+processes with special (and customizable) privileges in a
+nosuid environment. It is based on a client/server model
+and on the ability to pass file descriptors between processes.
+
+WWW: http://sourceforge.net/projects/sud/
+
+- bugghy
+bugghy@SAFe-mail.net
diff --git a/security/sud/pkg-plist b/security/sud/pkg-plist
new file mode 100644
index 0000000..6be92aa
--- /dev/null
+++ b/security/sud/pkg-plist
@@ -0,0 +1,8 @@
+bin/suz
+etc/issue.suz
+etc/motd.suz
+@unexec if cmp -s %D/etc/sud.conf.sample %D/etc/sud.conf; then rm -f %D/etc/sud.conf; fi
+etc/sud.conf.sample
+@exec if [ ! -f %D/etc/sud.conf ] ; then cp -p %D/%F %B/sud.conf; fi
+sbin/ilogin
+sbin/sud
OpenPOWER on IntegriCloud