Skip to content

Commit 48b300e

Browse files
Michael BaeuerleMichael Baeuerle
authored andcommitted
wendzelnntpd: Finish package
Not tested yet.
1 parent f8489d8 commit 48b300e

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

wendzelnntpd/INSTALL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ POST-INSTALL)
66
if [ ! -e @PKG_SYSCONFDIR@/wendzelnntpd/ssl/server.crt ] \
77
|| [ ! -e @PKG_SYSCONFDIR@/ssl/server.key ] \
88
|| [ ! -e @PKG_SYSCONFDIR@/ssl/ca.crt ]; then
9-
bash create_certificate --environment local
9+
@PREFIX@/sbin/create_certificate --environment local
1010
fi
1111

1212
# initialize sqlite database
1313
if [ ! -e @VARBASE@/spool/news/wendzelnntpd/usenet.db ]; then
1414
cat @PREFIX@/share/wendzelnntpd/usenet.db_struct | sqlite3 @VARBASE@/spool/news/wendzelnntpd/usenet.db
15-
wendzelnntpadm addgroup alt.wendzelnntpd.test y
15+
@PREFIX@/sbin/wendzelnntpadm addgroup alt.wendzelnntpd.test y
1616
fi
1717
esac

wendzelnntpd/Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,35 @@ HOMEPAGE= https://sourceforge.net/projects/wendzelnntpd
1010
COMMENT= Free Usenet server with SQL backend and RBAC
1111
LICENSE= gnu-gpl-v3
1212

13+
GNU_CONFIGURE= YES
1314
USE_TOOLS+= bison flex gmake bash:run
1415
USE_FEATURES= err regcomp snprintf
1516

16-
GNU_CONFIGURE= YES
17-
1817
REPLACE_BASH= create_certificate_raw
1918

20-
BUILD_DEFS+= VARBASE
19+
SUBST_CLASSES+= openssl
20+
SUBST_MESSAGE.openssl= Insert absolute path for openssl binary.
21+
SUBST_STAGE.openssl= pre-configure
22+
SUBST_FILES.openssl= create_certificate_raw
23+
SUBST_SED.openssl= -e 's,openssl ,${PREFIX}/bin/openssl ,g'
2124

2225
# Directory for example config file
2326
EGDIR= ${PREFIX}/share/examples/wendzelnntpd
24-
25-
RCD_SCRIPTS= wendzelnntpd
26-
27+
WRKSRC= ${WRKDIR}/cdpxe-WendzelNNTPd-bf144dc
28+
BUILD_DEFS+= VARBASE
2729
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/wendzelnntpd \
2830
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
2931
OWN_DIRS_PERMS+= ${VARBASE}/spool/news/wendzelnntpd \
3032
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
3133
CONF_FILES_PERMS= ${EGDIR}/wendzelnntpd/wendzelnntpd.conf \
3234
${PKG_SYSCONFDIR}/wendzelnntpd/wendzelnntpd.conf \
3335
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600
34-
WRKSRC= ${WRKDIR}/cdpxe-WendzelNNTPd-bf144dc
35-
3636
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} \
3737
UDBDIR=${PREFIX}/var/spool/news/wendzelnntpd \
3838
SQLITEINST=NO CREATE_CERTIFICATES=NO
3939

40+
RCD_SCRIPTS= wendzelnntpd
41+
4042
.include "../../databases/sqlite3/buildlink3.mk"
4143
.include "../../security/mhash/buildlink3.mk"
4244
.include "../../security/openssl/buildlink3.mk"

wendzelnntpd/TODO

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Not ready for import.
22

33
[X] Fix interpreter path for bash
4+
[X] Fix INSTALL script
5+
[X] Use absolute path for openssl binary in create_certificate script
46
[ ] Test on NetBSD

0 commit comments

Comments
 (0)