mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
433ac546cb
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>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# 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>
|