023f86dc58
When a TCP socket is closed, it becomes possible to create a new socket listening on the same address; the behaviour of UNIX (aka "local") sockets is different, in that an inode remains even after it is closed, and blocks the creation of a new socket with the same address. When spiped is launched with a UNIX socket as its source address, delete any existing socket with that address first. This makes it possible to "service spiped restart" when UNIX sockets are used. Deleting the socket when stopping spiped would also work for the case of restarting the daemon, but not for the case of starting the daemon after an unclean system shutdown; so deleting only prior to starting the daemon seemed like the better option. PR: 295432 Reported by: feld
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
PORTNAME= spiped
|
|
PORTVERSION= 1.6.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils security
|
|
MASTER_SITES= http://www.tarsnap.com/spiped/
|
|
|
|
MAINTAINER= cperciva@tarsnap.com
|
|
COMMENT= Daemon for creating secure symmetric pipes
|
|
WWW= https://www.tarsnap.com/spiped.html
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
# The spiped build only needs C99, but asking for compiler:c11 will help to
|
|
# get us a compiler which has support for AESNI on x86 systems
|
|
USES= compiler:c11 tar:tgz ssl
|
|
|
|
# Install into ${STAGEDIR}${PREFIX}
|
|
MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin
|
|
MAKE_ARGS+= MAN1DIR=${STAGEDIR}${PREFIX}/share/man/man1
|
|
|
|
# add -I and -L directories for OpenSSL
|
|
MAKE_ARGS+= CFLAGS="-O2 -I${OPENSSLINC}"
|
|
MAKE_ARGS+= LDADD_EXTRA="-L${OPENSSLLIB}"
|
|
|
|
PORTDOCS= BUILDING CHANGELOG COPYRIGHT README.md STYLE
|
|
PLIST_FILES= bin/spipe \
|
|
bin/spiped \
|
|
share/man/man1/spipe.1.gz \
|
|
share/man/man1/spiped.1.gz
|
|
|
|
USE_RC_SUBR= spiped
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USERS= spiped
|
|
GROUPS= spiped
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|