summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/clockspeed-conf/Makefile34
-rw-r--r--sysutils/clockspeed-conf/distinfo1
-rw-r--r--sysutils/clockspeed-conf/files/create_ids.sh40
-rw-r--r--sysutils/clockspeed-conf/files/patch-clockspeed-conf10
-rw-r--r--sysutils/clockspeed-conf/pkg-descr7
-rw-r--r--sysutils/clockspeed-conf/pkg-plist7
7 files changed, 100 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 13035c4..5f359ac 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -51,6 +51,7 @@
SUBDIR += chgrep
SUBDIR += clean_
SUBDIR += clockspeed
+ SUBDIR += clockspeed-conf
SUBDIR += cmdwatch
SUBDIR += colorize
SUBDIR += comconsole
diff --git a/sysutils/clockspeed-conf/Makefile b/sysutils/clockspeed-conf/Makefile
new file mode 100644
index 0000000..c05eb18
--- /dev/null
+++ b/sysutils/clockspeed-conf/Makefile
@@ -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>
diff --git a/sysutils/clockspeed-conf/distinfo b/sysutils/clockspeed-conf/distinfo
new file mode 100644
index 0000000..516f767
--- /dev/null
+++ b/sysutils/clockspeed-conf/distinfo
@@ -0,0 +1 @@
+MD5 (clockspeed-conf-0.4.5.tar.gz) = 4a4117d341f5f1c80201e6361eb49722
diff --git a/sysutils/clockspeed-conf/files/create_ids.sh b/sysutils/clockspeed-conf/files/create_ids.sh
new file mode 100644
index 0000000..b6c7758
--- /dev/null
+++ b/sysutils/clockspeed-conf/files/create_ids.sh
@@ -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"
diff --git a/sysutils/clockspeed-conf/files/patch-clockspeed-conf b/sysutils/clockspeed-conf/files/patch-clockspeed-conf
new file mode 100644
index 0000000..4d5bc6c
--- /dev/null
+++ b/sysutils/clockspeed-conf/files/patch-clockspeed-conf
@@ -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}
diff --git a/sysutils/clockspeed-conf/pkg-descr b/sysutils/clockspeed-conf/pkg-descr
new file mode 100644
index 0000000..799b49b
--- /dev/null
+++ b/sysutils/clockspeed-conf/pkg-descr
@@ -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/
diff --git a/sysutils/clockspeed-conf/pkg-plist b/sysutils/clockspeed-conf/pkg-plist
new file mode 100644
index 0000000..dbb80b5
--- /dev/null
+++ b/sysutils/clockspeed-conf/pkg-plist
@@ -0,0 +1,7 @@
+@comment $FreeBSD$
+bin/clockspeed-conf
+bin/taiclockd-conf
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud