Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161494193
D9570.id25101.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D9570.id25101.diff
View Options
Index: net/chrony/Makefile
===================================================================
--- net/chrony/Makefile
+++ net/chrony/Makefile
@@ -12,23 +12,24 @@
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= rubygem-asciidoctor>=0:textproc/rubygem-asciidoctor
+USERS= chronyd
+GROUPS= chronyd
-USES= cpe gmake makeinfo readline
+USES= cpe gmake libedit
CPE_VENDOR= tuxfamily
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--chronyvardir=/var/db/${PORTNAME} \
--infodir=${PREFIX}/info \
--sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man \
- --datarootdir=${DATADIR} --docdir=${DOCSDIR}
+ --datarootdir=${DATADIR} --docdir=${DOCSDIR} \
+ --with-user=chronyd
+LDFLAGS+= -L${LOCALBASE}/lib
USE_RC_SUBR= chronyd
-ALL_TARGET= all docs
-INSTALL_TARGET= install install-docs
-EXTRAPORTDOCS= FAQ NEWS README
-PORTDOCS= chrony.conf.html chronyc.html chronyd.html faq.html \
- installation.html ${EXTRAPORTDOCS}
+ALL_TARGET= all
+INSTALL_TARGET= install
+PORTDOCS= FAQ NEWS README
PORTEXAMPLES= chrony.conf.example1 chrony.conf.example2 \
chrony.conf.example3 chrony.keys.example
@@ -46,7 +47,8 @@
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/chronyd
- ${INSTALL_DATA} ${EXTRAPORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \
${STAGEDIR}${EXAMPLESDIR}
Index: net/chrony/pkg-message
===================================================================
--- net/chrony/pkg-message
+++ net/chrony/pkg-message
@@ -1,5 +1,4 @@
Unfortunately, this software has shameful history of several vulnerabilities
previously discovered. FreeBSD Project cannot guarantee that this spree had
-come to an end. It is further complicated, as chronyd(8) requires superuser
-permissions to operate; please type ``make deinstall'' to deinstall the port
+come to an end. Please type ``pkg delete chrony'' to deinstall the port
if tight security is a concern.
Index: net/chrony/pkg-plist
===================================================================
--- net/chrony/pkg-plist
+++ net/chrony/pkg-plist
@@ -4,4 +4,4 @@
man/man5/chrony.conf.5.gz
man/man8/chronyd.8.gz
sbin/chronyd
-@dir /var/db/chrony
+@dir(chronyd,chronyd) /var/db/chrony
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 5, 7:03 AM (18 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34698826
Default Alt Text
D9570.id25101.diff (2 KB)
Attached To
Mode
D9570: Enable privelege separtion and minor fixes
Attached
Detach File
Event Timeline
Log In to Comment