aboutsummaryrefslogtreecommitdiff
path: root/devel/p4p
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p4p')
-rw-r--r--devel/p4p/Makefile107
-rw-r--r--devel/p4p/distinfo10
-rw-r--r--devel/p4p/files/perforce.conf.in40
-rw-r--r--devel/p4p/files/perforce.sh.in38
-rw-r--r--devel/p4p/pkg-comment1
-rw-r--r--devel/p4p/pkg-descr4
-rw-r--r--devel/p4p/pkg-install52
-rw-r--r--devel/p4p/pkg-plist4
8 files changed, 0 insertions, 256 deletions
diff --git a/devel/p4p/Makefile b/devel/p4p/Makefile
deleted file mode 100644
index 3bcdbcddf659..000000000000
--- a/devel/p4p/Makefile
+++ /dev/null
@@ -1,107 +0,0 @@
-# New ports collection makefile for: perforce
-# Date created: 3 Mai 2000
-# Whom: sam@inf.enst.fr
-#
-# $FreeBSD$
-#
-
-PORTNAME= perforce
-PORTVERSION= ${VERSION}
-PORTREVISION= ${REVISION}
-PORTEPOCH= 1
-CATEGORIES= devel
-MASTER_SITES= ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.${PLATFORM}/ \
- ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/doc/man/:man
-EXTRACT_SUFX=
-DISTFILES= ${BIN_FILES} ${SBIN_FILES} ${MAN1:S/$/:man/}
-DIST_SUBDIR= perforce/${VERSION}/${ARCH}
-EXTRACT_ONLY= # none
-
-MAINTAINER= marshall@chezmarshall.com
-
-NO_PACKAGE= Restricted distribution
-NO_CDROM= Restricted distribution
-MAN1= p4.1 p4d.1
-
-NO_WRKSUBDIR= yes
-
-.include <bsd.port.pre.mk>
-
-# These variables are all configurable.
-PERFORCE_USER?= p4admin
-PERFORCE_UID?= 94
-PERFORCE_GROUP?= p4admin
-PERFORCE_GID?= 94
-PERFORCE_HOME?= ${LOCALBASE}/perforce
-PERFORCE_ROOT?= ${PERFORCE_HOME}/root
-PERFORCE_LOGS?= ${PERFORCE_HOME}/logs
-PERFORCE_PORT?= 1666
-
-.if ${ARCH} == i386
-VERSION= 02.1
-REVISION= 2
-PLATFORM= freebsd4
-BIN_FILES= p4 p4web
-SBIN_FILES= p4d p4ftpd
-.elif ${ARCH} == alpha
-VERSION= 99.1
-REVISION= 1
-PLATFORM= freebsdaxp
-BIN_FILES= p4
-SBIN_FILES= p4d
-.else
-.error "Unsupported platform, sorry."
-.endif
-
-do-build:
- ${SED} -e "s,@PERFORCE_ROOT@,${PERFORCE_ROOT},g" \
- -e "s,@PERFORCE_LOGS@,${PERFORCE_LOGS},g" \
- -e "s,@PERFORCE_USER@,${PERFORCE_USER},g" \
- -e "s,@PERFORCE_PORT@,${PERFORCE_PORT},g" \
- < ${FILESDIR}/perforce.conf.in > ${WRKSRC}/perforce.conf
- ${SED} -e "s,@PREFIX@,${PREFIX},g" \
- < ${FILESDIR}/perforce.sh.in > ${WRKSRC}/perforce.sh
-
-pre-install:
- ${SETENV} PKG_PREFIX=${PREFIX} \
- PERFORCE_USER=${PERFORCE_USER} \
- PERFORCE_UID=${PERFORCE_UID} \
- PERFORCE_GROUP=${PERFORCE_GROUP} \
- PERFORCE_GID=${PERFORCE_GID} \
- PERFORCE_HOME=${PERFORCE_HOME} \
- PERFORCE_ROOT=${PERFORCE_ROOT} \
- PERFORCE_LOGS=${PERFORCE_LOGS} \
- ${SH} ${PKGDIR}/pkg-install ${PORTNAME} PRE-INSTALL
-
-do-install:
-.for f in ${BIN_FILES}
- ${INSTALL_PROGRAM} ${_DISTDIR}/${f} ${PREFIX}/bin/
-.endfor
-.for f in ${SBIN_FILES}
- ${INSTALL_PROGRAM} ${_DISTDIR}/${f} ${PREFIX}/sbin/
-.endfor
- ${INSTALL_DATA} ${WRKSRC}/perforce.conf ${PREFIX}/etc/perforce.conf.default; \
- if [ ! -f ${PREFIX}/etc/perforce.conf ]; then \
- ${CP} -p ${PREFIX}/etc/perforce.conf.default ${PREFIX}/etc/perforce.conf; \
- fi
- ${INSTALL_SCRIPT} ${WRKSRC}/perforce.sh ${PREFIX}/etc/rc.d/
-.for f in ${MAN1}
- ${INSTALL_MAN} ${_DISTDIR}/${f} ${PREFIX}/man/man1/
-.endfor
-.for f in ${BIN_FILES}
- ${INSTALL_PROGRAM} ${_DISTDIR}/${f} ${PREFIX}/bin/
-.endfor
-.for f in ${SBIN_FILES}
- ${INSTALL_PROGRAM} ${_DISTDIR}/${f} ${PREFIX}/sbin/
-.endfor
-
-post-install:
-.for f in ${BIN_FILES}
- ${ECHO_CMD} bin/${f} >> ${TMPPLIST}
-.endfor
-.for f in ${SBIN_FILES}
- ${ECHO_CMD} sbin/${f} >> ${TMPPLIST}
-.endfor
- ${ECHO_CMD} "@unexec /bin/rmdir ${PERFORCE_ROOT} ${PERFORCE_LOGS} ${PERFORCE_HOME} 2>/dev/null || true" >> ${TMPPLIST}
-
-.include <bsd.port.post.mk>
diff --git a/devel/p4p/distinfo b/devel/p4p/distinfo
deleted file mode 100644
index 61a77b76e38d..000000000000
--- a/devel/p4p/distinfo
+++ /dev/null
@@ -1,10 +0,0 @@
-MD5 (perforce/02.1/i386/p4) = 74e7d85461e5ec5c32b43ab6ce2751c1
-MD5 (perforce/02.1/i386/p4d) = da9a44c23d841699d74c1b3b4ea34f7e
-MD5 (perforce/02.1/i386/p4ftpd) = afe586e372af2371da484761b9dd8294
-MD5 (perforce/02.1/i386/p4web) = 14a3d7cd263c6cb5be5fe2c92494c80f
-MD5 (perforce/02.1/i386/p4.1) = f5ab07d3fe1d8387f7685fca03053461
-MD5 (perforce/02.1/i386/p4d.1) = 721b40e0e2f5f41e6cfae52450127283
-MD5 (perforce/99.1/alpha/p4) = 7c1300a82ab03b7ede46cf8a02c48fd9
-MD5 (perforce/99.1/alpha/p4d) = 8f34c41c18185011ed848aaf450cffa5
-MD5 (perforce/99.1/alpha/p4.1) = 4a9d035eb5ef96342c2f701a02da40f9
-MD5 (perforce/99.1/alpha/p4d.1) = a08eb04e9668ba4d0abf47f3b12c56f7
diff --git a/devel/p4p/files/perforce.conf.in b/devel/p4p/files/perforce.conf.in
deleted file mode 100644
index a98aa38b842b..000000000000
--- a/devel/p4p/files/perforce.conf.in
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Perforce FreeBSD configuration file
-#
-#
-# $FreeBSD$
-
-#
-# Perforce ROOT
-#
-PERFORCE_ROOT="@PERFORCE_ROOT@"
-
-#
-# Perforce user (it is recommended to run p4d as a non-root user)
-#
-PERFORCE_USER="@PERFORCE_USER@"
-
-#
-# p4d port (default: 1666)
-#
-PERFORCE_PORT="@PERFORCE_PORT@"
-
-#
-# p4d options (see man p4d)
-#
-PERFORCE_OPTIONS="-d -p $PERFORCE_PORT -v server=1 -L @PERFORCE_LOGS@/p4d.log"
-
-#
-# Uncomment this line to have the server started automatically
-#
-#PERFORCE_START=yes
-
-#
-# p4ftpd options (see p4ftpd -h)
-#
-PERFORCE_FTPD_OPTIONS="-d -p $PERFORCE_PORT -v server=1 -L @PERFORCE_LOGS@/p4ftpd.log"
-
-#
-# Uncomment this line to have the server started automatically
-#
-#PERFORCE_FTPD_START=yes
diff --git a/devel/p4p/files/perforce.sh.in b/devel/p4p/files/perforce.sh.in
deleted file mode 100644
index 38cdb146e00e..000000000000
--- a/devel/p4p/files/perforce.sh.in
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-p4d=@PREFIX@/sbin/p4d
-p4ftpd=@PREFIX@/sbin/p4ftpd
-
-case $1 in
-start)
- [ -f @PREFIX@/etc/perforce.conf ] && . @PREFIX@/etc/perforce.conf
- if [ -x $p4d -a x$PERFORCE_START = xyes ]; then
- echo -n ' p4d'
- su -fm $PERFORCE_USER -c "$p4d -r $PERFORCE_ROOT $PERFORCE_OPTIONS"
- fi
- if [ -x $p4ftpd -a x$PERFORCE_FTPD_START = xyes ]; then
- echo -n ' p4ftpd'
- $p4ftpd $PERFORCE_FTPD_OPTIONS
- fi
- ;;
-stop)
- [ -f @PREFIX@/etc/perforce.conf ] && . @PREFIX@/etc/perforce.conf
- if [ -x $p4ftpd ]; then
- killall -u 0 p4ftpd >/dev/null 2>&1 && echo -n ' p4ftpd'
- fi
- if [ -x $p4d ]; then
- killall -u $PERFORCE_USER p4d >/dev/null 2>&1 && echo -n ' p4d'
- fi
- ;;
-restart)
- $0 stop
- sleep 1
- $0 start
- ;;
-*)
- echo "usage: $0 {start|stop|restart}"
- exit 64
- ;;
-esac
diff --git a/devel/p4p/pkg-comment b/devel/p4p/pkg-comment
deleted file mode 100644
index 17ccd1050ebe..000000000000
--- a/devel/p4p/pkg-comment
+++ /dev/null
@@ -1 +0,0 @@
-Perforce client and server
diff --git a/devel/p4p/pkg-descr b/devel/p4p/pkg-descr
deleted file mode 100644
index e6d35851b44b..000000000000
--- a/devel/p4p/pkg-descr
+++ /dev/null
@@ -1,4 +0,0 @@
-Perforce is a commercial revision control system that can be used
-gratis for developing free software. (see the WWW page for details).
-
-WWW: http://www.perforce.com/
diff --git a/devel/p4p/pkg-install b/devel/p4p/pkg-install
deleted file mode 100644
index b1c9c5d72e22..000000000000
--- a/devel/p4p/pkg-install
+++ /dev/null
@@ -1,52 +0,0 @@
-#! /bin/sh
-#
-# $FreeBSD$
-
-PATH=/bin:/usr/sbin
-
-PERFORCE_USER=${PERFORCE_USER:-p4admin}
-PERFORCE_UID=${PERFORCE_UID:-94}
-PERFORCE_GROUP=${PERFORCE_GROUP:-p4admin}
-PERFORCE_GID=${PERFORCE_GID:-94}
-PERFORCE_HOME=${PERFORCE_HOME:-$PKG_PREFIX/perforce}
-PERFORCE_LOGDIR=${PERFORCE_LOGDIR:-$PERFORCE_HOME/log}
-PERFORCE_ROOT=${PERFORCE_ROOT:-$PERFORCE_HOME/root}
-
-case $2 in
-PRE-INSTALL)
- USER=${PERFORCE_USER}
- GROUP=${PERFORCE_GROUP}
- UID=${PERFORCE_UID}
- GID=${PERFORCE_GID}
-
- if pw group show "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
- else
- if pw groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- if pw user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d ${PERFORCE_HOME} -c "Perforce admin" -s /sbin/nologin
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
-
- if [ ! -d $PERFORCE_HOME ] ; then
-echo hey
- mkdir -p $PERFORCE_HOME $PERFORCE_LOGS $PERFORCE_ROOT
- chown -R $USER:$GROUP $PERFORCE_HOME
- fi
- ;;
-esac
diff --git a/devel/p4p/pkg-plist b/devel/p4p/pkg-plist
deleted file mode 100644
index 31e0893152cc..000000000000
--- a/devel/p4p/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-@unexec if cmp -s %D/etc/perforce.conf %D/etc/perforce.conf.default; then rm -f %D/etc/perforce.conf; fi
-etc/perforce.conf.default
-@exec [ ! -f %B/perforce.conf ] && cp -p %B/%f %B/perforce.conf || true
-etc/rc.d/perforce.sh