mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Stagify.
2: use @sample on pkg-plist. 3: Bump version.
This commit is contained in:
parent
81e6b8052b
commit
e02b236f9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357180
@ -3,23 +3,18 @@
|
||||
|
||||
PORTNAME= sl2tps
|
||||
PORTVERSION= 0.4.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF/libpdel/${PORTNAME}/${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Simple L2TP server based on libpdel(3) and netgraph(4)
|
||||
|
||||
LICENSE= BSD
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
||||
|
||||
LIB_DEPENDS= pdel.0:${PORTSDIR}/devel/libpdel
|
||||
LIB_DEPENDS= libpdel.so:${PORTSDIR}/devel/libpdel
|
||||
|
||||
MANCOMPRESSED= maybe
|
||||
MAN1= sl2tps.1
|
||||
PLIST_FILES= bin/sl2tps %%ETCDIR%%/config.xml.sample
|
||||
PLIST_DIRS= %%ETCDIR%%
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|$${PREFIX}/include|$${LOCALBASE}/include|g ; \
|
||||
|
21
net/sl2tps/files/patch-Makefile
Normal file
21
net/sl2tps/files/patch-Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
--- Makefile.orig 2014-06-10 00:10:49.502121136 +0800
|
||||
+++ Makefile 2014-06-10 00:11:31.903120544 +0800
|
||||
@@ -38,14 +38,14 @@ CLEANFILES+= ${PROG}.1
|
||||
# Install example config file
|
||||
#
|
||||
beforeinstall:
|
||||
- @if [ ! -d ${PREFIX}/etc/${PROG} ]; then \
|
||||
+ @if [ ! -d $(DESTDIR)${PREFIX}/etc/${PROG} ]; then \
|
||||
${ECHO} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 \
|
||||
- ${PREFIX}/etc/${PROG}; \
|
||||
+ $(DESTDIR)${PREFIX}/etc/${PROG}; \
|
||||
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 \
|
||||
- ${PREFIX}/etc/${PROG}; \
|
||||
+ $(DESTDIR)${PREFIX}/etc/${PROG}; \
|
||||
fi
|
||||
${INSTALL} -C -o ${SHAREOWN} -g ${SHAREGRP} -m 0644 \
|
||||
- ${CONFIG_SAMPLE} ${PREFIX}/etc/${PROG}/${CONFIG_SAMPLE}
|
||||
+ ${CONFIG_SAMPLE} $(DESTDIR)${PREFIX}/etc/${PROG}/${CONFIG_SAMPLE}
|
||||
|
||||
distclean: cleandir
|
||||
|
4
net/sl2tps/pkg-plist
Normal file
4
net/sl2tps/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/sl2tps
|
||||
@sample %%ETCDIR%%/config.xml.sample
|
||||
man/man1/sl2tps.1.gz
|
||||
@dirrmtry %%ETCDIR%%
|
Loading…
Reference in New Issue
Block a user