Add clockspeed-conf 0.4.5:

The clockspeed-conf package provides configuration
scripts to set up a clockspeed client and/or a taiclockd
server using Dan Bernstein's daemontools for supervision
and his clockspeed package for time synchronisation.

Author:	Patrick Atamaniuk <atamaniuk at frobs.net>
WWW:	http://foo42.de/devel/sysutils/clockspeed-conf/

PR:		51036
Submitted by:	Patrick Atamaniuk <atamaniuk at frobs.net>
This commit is contained in:
Sergei Kolobov 2003-11-11 21:01:09 +00:00
parent 7e7e9e128d
commit 2deebefbb7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93752
7 changed files with 100 additions and 0 deletions

View file

@ -51,6 +51,7 @@
SUBDIR += chgrep
SUBDIR += clean_
SUBDIR += clockspeed
SUBDIR += clockspeed-conf
SUBDIR += cmdwatch
SUBDIR += colorize
SUBDIR += comconsole

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: clockspeed-conf
# Date created: 10 April 2003
# Whom: Patrick Atamaniuk <atamaniuk at frobs.net>
#
# $FreeBSD$
#
PORTNAME= clockspeed-conf
PORTVERSION= 0.4.5
CATEGORIES= sysutils
MASTER_SITES= http://foo42.de/distfiles/
MAINTAINER= atamaniuk-ports@frobs.net
COMMENT= Supervise scripts for clockspeed to use daemontools
RUN_DEPENDS= supervise:${PORTSDIR}/sysutils/daemontools \
clockspeed:${PORTSDIR}/sysutils/clockspeed
MAN8= clockspeed-conf.8 taiclockd-conf.8
DOCS= COPYRIGHT README TODO
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
@${ECHO_MSG} "***"
@${ECHO_MSG} "*** Type 'make ids' to create user/group IDs"
@${ECHO_MSG} "***"
ids:
@${SH} ${FILESDIR}/create_ids.sh
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (clockspeed-conf-0.4.5.tar.gz) = 4a4117d341f5f1c80201e6361eb49722

View file

@ -0,0 +1,40 @@
#!/bin/sh
# $FreeBSD$
PATH=/bin:/usr/sbin:/usr/bin:/bin
make_user() {
USER=$1
UID=$2
COMMENT="$3"
USER_HOME=/nonexistent
GROUP=${USER}
if pw user show "${USER}" 2>/dev/null; then
echo "You already have a user \"${USER}\", so I will use it."
else
while pw user show ${UID}; do
UID=`expr ${UID} + 1`
done
GID=${UID}
if pw groupadd ${GROUP} -g ${GID}; then
echo "Added group \"${GROUP}\"."
else
echo "Adding group \"${GROUP}\" failed..."
exit 1
fi
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-d ${USER_HOME} -s /sbin/nologin -c "${COMMENT}"
then
echo "Added user \"${USER}\"."
else
echo "Adding user \"${USER}\" failed..."
exit 1
fi
fi
}
make_user clockspeed 801 "clockspeed adjust service"
make_user taiclock 802 "taiclockd daemon"
make_user log 803 "djb service log"

View file

@ -0,0 +1,10 @@
--- clockspeed-conf.orig Mon Apr 14 14:55:45 2003
+++ clockspeed-conf Mon Apr 14 14:55:54 2003
@@ -12,7 +12,7 @@
# and optionally ATTOFILE if not ETCDIR/atto
#
#
-[ -z "${CLOCKSPEED_INSTALLATION}" ] && CLOCKSPEED_INSTALLATION="DJB"
+[ -z "${CLOCKSPEED_INSTALLATION}" ] && CLOCKSPEED_INSTALLATION="FreeBSD_PORT"
PATH=/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/command:${PATH}

View file

@ -0,0 +1,7 @@
The clockspeed-conf package provides configuration
scripts to set up a clockspeed client and/or a taiclockd
server using Dan Bernstein's daemontools for supervision
and his clockspeed package for time synchronisation.
Author: Patrick Atamaniuk <atamaniuk at frobs.net>
WWW: http://foo42.de/devel/sysutils/clockspeed-conf/

View file

@ -0,0 +1,7 @@
@comment $FreeBSD$
bin/clockspeed-conf
bin/taiclockd-conf
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%