aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/satellite
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-03-10 15:39:29 +0800
committerdinoex <dinoex@FreeBSD.org>2001-03-10 15:39:29 +0800
commit8fe1d1a3cf029397d8af6af7d7041ae29b146a28 (patch)
tree890d969ab3131b48059bc4a3be7bcbcf45846d36 /net-mgmt/satellite
parent4bae8838df71cbca9ceaab6e568a241bf15868dc (diff)
downloadfreebsd-ports-gnome-8fe1d1a3cf029397d8af6af7d7041ae29b146a28.tar.gz
freebsd-ports-gnome-8fe1d1a3cf029397d8af6af7d7041ae29b146a28.tar.zst
freebsd-ports-gnome-8fe1d1a3cf029397d8af6af7d7041ae29b146a28.zip
new port added
PR: 25406 Submitted by: mark@kyne.com.au
Diffstat (limited to 'net-mgmt/satellite')
-rw-r--r--net-mgmt/satellite/Makefile31
-rw-r--r--net-mgmt/satellite/distinfo1
-rw-r--r--net-mgmt/satellite/pkg-comment1
-rw-r--r--net-mgmt/satellite/pkg-descr9
-rw-r--r--net-mgmt/satellite/pkg-install38
-rw-r--r--net-mgmt/satellite/pkg-plist4
6 files changed, 84 insertions, 0 deletions
diff --git a/net-mgmt/satellite/Makefile b/net-mgmt/satellite/Makefile
new file mode 100644
index 000000000000..0b8f7e93ec06
--- /dev/null
+++ b/net-mgmt/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-mgmt/satellite/distinfo b/net-mgmt/satellite/distinfo
new file mode 100644
index 000000000000..5dbda79f0298
--- /dev/null
+++ b/net-mgmt/satellite/distinfo
@@ -0,0 +1 @@
+MD5 (satellite-1.0.2.tar.gz) = 7a6ed7d10ebf864b6b9dde0cbcc478d7
diff --git a/net-mgmt/satellite/pkg-comment b/net-mgmt/satellite/pkg-comment
new file mode 100644
index 000000000000..ad2715dacd53
--- /dev/null
+++ b/net-mgmt/satellite/pkg-comment
@@ -0,0 +1 @@
+A system for tracking machines with dynamic IP addresses
diff --git a/net-mgmt/satellite/pkg-descr b/net-mgmt/satellite/pkg-descr
new file mode 100644
index 000000000000..566fa4fee119
--- /dev/null
+++ b/net-mgmt/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-mgmt/satellite/pkg-install b/net-mgmt/satellite/pkg-install
new file mode 100644
index 000000000000..7145c4db65da
--- /dev/null
+++ b/net-mgmt/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-mgmt/satellite/pkg-plist b/net-mgmt/satellite/pkg-plist
new file mode 100644
index 000000000000..0cd0d8969de7
--- /dev/null
+++ b/net-mgmt/satellite/pkg-plist
@@ -0,0 +1,4 @@
+sbin/satcfg
+sbin/satellite
+sbin/satellited
+sbin/satwatch