summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2001-03-10 07:39:29 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2001-03-10 07:39:29 +0000
commit42d20a384bc7ba90b56fb738fb2606186ddf92f8 (patch)
treee56a817ea31fdbaa0c6ba0f02780fd965aa385ef /net
parentnew port (diff)
new port added
PR: 25406 Submitted by: mark@kyne.com.au
Notes
Notes: svn path=/head/; revision=39401
Diffstat (limited to 'net')
-rw-r--r--net/satellite/Makefile31
-rw-r--r--net/satellite/distinfo1
-rw-r--r--net/satellite/pkg-comment1
-rw-r--r--net/satellite/pkg-descr9
-rw-r--r--net/satellite/pkg-install38
-rw-r--r--net/satellite/pkg-plist4
6 files changed, 84 insertions, 0 deletions
diff --git a/net/satellite/Makefile b/net/satellite/Makefile
new file mode 100644
index 000000000000..0b8f7e93ec06
--- /dev/null
+++ b/net/satellite/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: satellite
+# Date created: 24 Feb 2001
+# Whom: Mark Pulford <mark@kyne.com.au>
+#
+# $FreeBSD$
+#
+
+PORTNAME= satellite
+PORTVERSION= 1.0.2
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= system/network
+
+MAINTAINER= mark@kyne.com.au
+
+LIB_DEPENDS= gdbm.2:${PORTSDIR}/databases/gdbm
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include' \
+ LDFLAGS='-L${LOCALBASE}/lib'
+CONFIGURE_ARGS+= --localstatedir=/var/log
+
+MAN8= satcfg.8 satellite.8 satellited.8 satwatch.8
+
+pre-install:
+ @${SH} pkg-install ${PKGNAME} PRE-INSTALL
+
+post-install:
+ @${SH} pkg-install ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/net/satellite/distinfo b/net/satellite/distinfo
new file mode 100644
index 000000000000..5dbda79f0298
--- /dev/null
+++ b/net/satellite/distinfo
@@ -0,0 +1 @@
+MD5 (satellite-1.0.2.tar.gz) = 7a6ed7d10ebf864b6b9dde0cbcc478d7
diff --git a/net/satellite/pkg-comment b/net/satellite/pkg-comment
new file mode 100644
index 000000000000..ad2715dacd53
--- /dev/null
+++ b/net/satellite/pkg-comment
@@ -0,0 +1 @@
+A system for tracking machines with dynamic IP addresses
diff --git a/net/satellite/pkg-descr b/net/satellite/pkg-descr
new file mode 100644
index 000000000000..566fa4fee119
--- /dev/null
+++ b/net/satellite/pkg-descr
@@ -0,0 +1,9 @@
+Satellite can track many remote machines with dynamic IP addresses in
+situations where public DNS services are inappropriate. It can log
+and alert an admin immediately when a site moves around, comes online,
+or needs attention.
+
+WWW: http://www.kyne.com.au/~mark/software.html
+
+- Mark Pulford
+mark@kyne.com.au
diff --git a/net/satellite/pkg-install b/net/satellite/pkg-install
new file mode 100644
index 000000000000..7145c4db65da
--- /dev/null
+++ b/net/satellite/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+[ "${PKG_PREFIX}" ] && PREFIX="${PKG_PREFIX}"
+[ "${PREFIX}" ] || PREFIX=/usr/local
+
+case "$2" in
+ PRE-INSTALL)
+ if ! pw user show satellite >/dev/null 2>&1
+ then
+ echo "===> Creating user satellite"
+ pw add user -n satellite -c 'Satellite system user' -s /sbin/nologin -h - -d /
+ fi
+ ;;
+ POST-INSTALL)
+ if [ ! -f "${PREFIX}/etc/satellite.db" ]
+ then
+ echo "===> Creating ${PREFIX}/etc/satellite.db configuration file"
+ ${PREFIX}/sbin/satcfg -L
+ chown satellite ${PREFIX}/etc/satellite.db
+ chmod 600 ${PREFIX}/etc/satellite.db
+ fi
+ if [ ! -f "/var/log/satellite" ]
+ then
+ echo "===> Creating initial log file /var/log/satellite"
+ touch /var/log/satellite
+ chown satellite /var/log/satellite
+ fi
+ echo "===> To run the satellited server you will need to change a few files."
+ echo "===> Please add the following line to /etc/services"
+ echo "satellite 1764/tcp"
+ echo "===> Please add the following line to /etc/inetd.conf and restart inetd"
+ echo "satellite stream tcp nowait satellite ${PREFIX}/sbin/satellited satellited -v"
+ ;;
+ *)
+ echo "Incorrect parameter"
+ exit 1
+ ;;
+esac
diff --git a/net/satellite/pkg-plist b/net/satellite/pkg-plist
new file mode 100644
index 000000000000..0cd0d8969de7
--- /dev/null
+++ b/net/satellite/pkg-plist
@@ -0,0 +1,4 @@
+sbin/satcfg
+sbin/satellite
+sbin/satellited
+sbin/satwatch