diff options
Diffstat (limited to 'devel/p4web')
-rw-r--r-- | devel/p4web/Makefile | 152 | ||||
-rw-r--r-- | devel/p4web/distinfo.freebsd4 | 15 | ||||
-rw-r--r-- | devel/p4web/distinfo.freebsd54x86 | 15 | ||||
-rw-r--r-- | devel/p4web/distinfo.freebsd54x86_64 | 15 | ||||
-rw-r--r-- | devel/p4web/distinfo.freebsdaxp | 6 | ||||
-rw-r--r-- | devel/p4web/files/perforce.conf.in | 75 | ||||
-rw-r--r-- | devel/p4web/files/perforce.sh.in | 61 | ||||
-rw-r--r-- | devel/p4web/pkg-descr | 4 | ||||
-rw-r--r-- | devel/p4web/pkg-install | 51 | ||||
-rw-r--r-- | devel/p4web/pkg-plist | 4 |
10 files changed, 0 insertions, 398 deletions
diff --git a/devel/p4web/Makefile b/devel/p4web/Makefile deleted file mode 100644 index 43264135a875..000000000000 --- a/devel/p4web/Makefile +++ /dev/null @@ -1,152 +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}/ \ - http://filehost.perforce.com/perforce/r${PORTVERSION}/bin.${PLATFORM}/ -EXTRACT_SUFX= -DISTFILES= ${BIN_FILES} ${SBIN_FILES} -EXTRACT_ONLY= # none - -MAINTAINER= lth@FreeBSD.org -COMMENT= Perforce client and server - -ONLY_FOR_ARCHS= i386 amd64 alpha -DIST_SUBDIR= perforce/${VERSION}/${ARCH} -MD5_FILE= ${MASTERDIR}/distinfo.${PLATFORM} - -# -# This is a kludge. I don't know a better way to set PORTVERSION and -# PORTREVISION such that pkg_version figures out an update is needed -# -ARCH!= /usr/bin/uname -p -ARCH?= i386 - -.if (${ARCH} == i386) || (${ARCH} == amd64) -VERSION= 06.1 -REVISION= 6 -BIN_FILES= p4 -SBIN_FILES= p4d p4ftpd p4p p4web -REL_NOTES= http://www.perforce.com/perforce/doc.061/user/relnotes.txt -.elif ${ARCH} == alpha -VERSION= 99.1 -REVISION= 1 -PLATFORM= freebsdaxp -BIN_FILES= p4 -SBIN_FILES= p4d -REL_NOTES= http://www.perforce.com/perforce/doc.991/user/relnotes.txt -.else -VERSION= 0 -IGNORE= unsupported platform, sorry -.endif - -# End of kludge - -RESTRICTED= Restricted distribution - -NO_WRKSUBDIR= yes - -PLIST_FILES= ${BIN_FILES:S+^+bin/+g} \ - ${SBIN_FILES:S+^+sbin/+g} - -.include <bsd.port.pre.mk> - -# Figure out what to install -.if (${ARCH} == i386) || (${ARCH} == amd64) -.if ${OSVERSION} > 504000 -.if ${ARCH} == amd64 -PLATFORM= freebsd54x86_64 -.else -PLATFORM= freebsd54x86 -.endif -.elif ${OSVERSION} > 400000 -PLATFORM= freebsd4 -.else -IGNORE= only supported on FreeBSD 4.x and greater -.endif -.endif - -.if (${ARCH} == amd64) && (${OSVERSION} < 504000) -IGNORE= amd64 is only supported on FreeBSD 5.4 and later -.endif - -# Add compatability dependencies. -.if ${OSVERSION} > 600000 -LIB_DEPENDS+= c_r.5:${PORTSDIR}/misc/compat5x -.elif (${OSVERSION} < 504000) && (${OSVERSION} > 500000) -LIB_DEPENDS+= c_r.4:${PORTSDIR}/misc/compat4x -.endif - -# 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 -PERFORCE_CACHE?= ${PERFORCE_HOME}/cache -PERFORCE_TARGET?= perforce:1666 - -pre-everything:: - @${ECHO} "If the checksums fail, try doing 'make distclean'" - @${ECHO} "to force getting the latest binaries from Perforce." - @${ECHO} "" - @${ECHO} "Read the release notes for this release to determine" - @${ECHO} "how to migrate the database to the new version. In" - @${ECHO} "most instances, it is done automatically. However," - @${ECHO} "sometimes it must be done manually." - @${ECHO} "" - @${ECHO} "The release notes for this version are at" - @${ECHO} ${REL_NOTES} - @${ECHO} "" - @${ECHO} "Checkpoint and backup your data before installing!" - -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" \ - -e "s,@PERFORCE_CACHE@,${PERFORCE_CACHE},g" \ - -e "s,@PERFORCE_TARGET@,${PERFORCE_TARGET},g" \ - < ${FILESDIR}/perforce.conf.in > ${WRKSRC}/perforce.conf - ${SED} -e "s,@PREFIX@,${PREFIX},g" \ - < ${FILESDIR}/perforce.sh.in > ${WRKSRC}/perforce.sh - -pre-su-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/ - -post-install: - ${ECHO_CMD} "@unexec ${RMDIR} ${PERFORCE_ROOT} ${PERFORCE_LOGS} ${PERFORCE_HOME} 2>/dev/null || true" >> ${TMPPLIST} - -.include <bsd.port.post.mk> diff --git a/devel/p4web/distinfo.freebsd4 b/devel/p4web/distinfo.freebsd4 deleted file mode 100644 index 141847f92426..000000000000 --- a/devel/p4web/distinfo.freebsd4 +++ /dev/null @@ -1,15 +0,0 @@ -MD5 (perforce/06.1/i386/p4) = b2db1eb40020d495aeed0072b2bc538a -SHA256 (perforce/06.1/i386/p4) = 74a4586c8d21e968a608a37966759d07844c6752ccd5ea097f54061d61e6da1c -SIZE (perforce/06.1/i386/p4) = 734504 -MD5 (perforce/06.1/i386/p4d) = ff1cb62f2ae143bd216c07b19f50b3c9 -SHA256 (perforce/06.1/i386/p4d) = 1591726ca52ea6c8714e42bf95bb99f4840a66ec215120279521349c299f9b12 -SIZE (perforce/06.1/i386/p4d) = 1513300 -MD5 (perforce/06.1/i386/p4ftpd) = 01c0a6ab9a6590780f513a17f4aeffaf -SHA256 (perforce/06.1/i386/p4ftpd) = d733ef1031adb8e556ae3402191aa45bcc92bc5d2566c786cf32e2135c8b2845 -SIZE (perforce/06.1/i386/p4ftpd) = 828224 -MD5 (perforce/06.1/i386/p4p) = 9ac89d7b4970b33bfe4979c317362d09 -SHA256 (perforce/06.1/i386/p4p) = 150d2504f53ed8aab38bc09b4cd5bca6d9fdd37ba5268341842398c5dde756c4 -SIZE (perforce/06.1/i386/p4p) = 613296 -MD5 (perforce/06.1/i386/p4web) = 8ec471a1c38b3e0f5dd50629537f4f38 -SHA256 (perforce/06.1/i386/p4web) = ce543e1ebc4662755c8169c9992ee10c651832caaf55262144406f3bb359a477 -SIZE (perforce/06.1/i386/p4web) = 1603728 diff --git a/devel/p4web/distinfo.freebsd54x86 b/devel/p4web/distinfo.freebsd54x86 deleted file mode 100644 index aa6196b7d343..000000000000 --- a/devel/p4web/distinfo.freebsd54x86 +++ /dev/null @@ -1,15 +0,0 @@ -MD5 (perforce/06.1/i386/p4) = 8899698abaab7f7e26bca94571b8c1e7 -SHA256 (perforce/06.1/i386/p4) = ac69427052d67eb961b12a7063a202f580e564c46097e58e4040bf0953e6a8b5 -SIZE (perforce/06.1/i386/p4) = 503748 -MD5 (perforce/06.1/i386/p4d) = a4f39ec2bc0a4c1f35a04a6705114b95 -SHA256 (perforce/06.1/i386/p4d) = e31735fde7de65d91fcf4fe8313adad98d7c10ca724b67db3cae21d21f4b84e7 -SIZE (perforce/06.1/i386/p4d) = 1333592 -MD5 (perforce/06.1/i386/p4ftpd) = 6cd62d30a5956793944ecb3fdd29c679 -SHA256 (perforce/06.1/i386/p4ftpd) = c35fc3da9b79379400fc091563a66716dc5a2b8d7090550887f54963beff87cc -SIZE (perforce/06.1/i386/p4ftpd) = 597624 -MD5 (perforce/06.1/i386/p4p) = ba23b0d431c3674565179b7752024001 -SHA256 (perforce/06.1/i386/p4p) = 12059a570f2cf13c9766377e72ed1fa846280d5acf0e9bd74dfe97b5fc38466f -SIZE (perforce/06.1/i386/p4p) = 433724 -MD5 (perforce/06.1/i386/p4web) = a92ee3b18dd0e457dd03d086f5317731 -SHA256 (perforce/06.1/i386/p4web) = fedb2fd1f818c9c9c625f2753a72cc747e00196b66d919dcf9397ae75bd32265 -SIZE (perforce/06.1/i386/p4web) = 1665483 diff --git a/devel/p4web/distinfo.freebsd54x86_64 b/devel/p4web/distinfo.freebsd54x86_64 deleted file mode 100644 index 28228a419f80..000000000000 --- a/devel/p4web/distinfo.freebsd54x86_64 +++ /dev/null @@ -1,15 +0,0 @@ -MD5 (perforce/06.1/amd64/p4) = 35a845c5583ca7ca4c0a25eefabcb554 -SHA256 (perforce/06.1/amd64/p4) = efe72bfa7d0ec7245b07a9c5f93824ef14eb101f24c603b012f24b6cea726253 -SIZE (perforce/06.1/amd64/p4) = 566752 -MD5 (perforce/06.1/amd64/p4d) = e19f5599984673d5135074707cbedbb2 -SHA256 (perforce/06.1/amd64/p4d) = 29ff45fcf7fb50770db3f21a966909f8713c9569ea7cff77522f7dab9f5b120e -SIZE (perforce/06.1/amd64/p4d) = 1487288 -MD5 (perforce/06.1/amd64/p4ftpd) = bbf5bcc99d769bcc15f8962166425dd8 -SHA256 (perforce/06.1/amd64/p4ftpd) = 7e2025ecf4175562c07bc6b5c615b7ad3a0e666569fd4c4db9c35fa6f98daf91 -SIZE (perforce/06.1/amd64/p4ftpd) = 673464 -MD5 (perforce/06.1/amd64/p4p) = 3c03a8beb7e0f8e84370a1ae657bfdeb -SHA256 (perforce/06.1/amd64/p4p) = 6e144ea29d952502e74802c7cf6ce9cf8eda9d39c74b4e26eedf17e9368bea22 -SIZE (perforce/06.1/amd64/p4p) = 518040 -MD5 (perforce/06.1/amd64/p4web) = ca65281377b851693295afac8f9f638c -SHA256 (perforce/06.1/amd64/p4web) = 0ee99ed670b62baf0e7056b2ab4723d1b49e938cbea6930753d68d4a260de18f -SIZE (perforce/06.1/amd64/p4web) = 1836816 diff --git a/devel/p4web/distinfo.freebsdaxp b/devel/p4web/distinfo.freebsdaxp deleted file mode 100644 index 0c6b5f2e7179..000000000000 --- a/devel/p4web/distinfo.freebsdaxp +++ /dev/null @@ -1,6 +0,0 @@ -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 -MD5 (perforce/03.1/i386/p4.1) = 58208eb02ba3786eed2d8e91d851cecd -MD5 (perforce/03.1/i386/p4d.1) = 381a27c69d707aa3498602a1c216a8d3 diff --git a/devel/p4web/files/perforce.conf.in b/devel/p4web/files/perforce.conf.in deleted file mode 100644 index 803c56f86d17..000000000000 --- a/devel/p4web/files/perforce.conf.in +++ /dev/null @@ -1,75 +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/p4p port (default: 1666) -# -PERFORCE_PORT="@PERFORCE_PORT@" - -# -# p4p cache directory -# -PERFORCE_PROXY_CACHE="@PERFORCE_CACHE@" - -# -# p4p target server (default: perforce:1666) -# -PERFORCE_PROXY_TARGET="@PERFORCE_TARGET@" - -# -# 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 - -# -# p4p options (see p4p -h) -# -PERFORCE_PROXY_OPTIONS="-d -p $PERFORCE_PORT -t $PERFORCE_PROXY_TARGET -r $PERFORCE_PROXY_CACHE -v server=1 -L @PERFORCE_LOGS@/p4p.log" - -# -# Uncomment this line to have the proxy server started automatically -# -#PERFORCE_PROXY_START=yes - -# -# p4web port -# -PERFORCE_WEB_PORT="6060" - -# -# p4web options (see p4web -h) -# -PERFORCE_WEB_OPTIONS="-B -w $PERFORCE_WEB_PORT -p $PERFORCE_PORT -v server=1" - -# -# Uncomment this line to have the web server started automatically -# -#PERFORCE_WEB_START=yes diff --git a/devel/p4web/files/perforce.sh.in b/devel/p4web/files/perforce.sh.in deleted file mode 100644 index 2ebc5809fa48..000000000000 --- a/devel/p4web/files/perforce.sh.in +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ - -p4d=@PREFIX@/sbin/p4d -p4ftpd=@PREFIX@/sbin/p4ftpd -p4p=@PREFIX@/sbin/p4p -p4web=@PREFIX@/sbin/p4web - -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 - if [ -x $p4p -a x$PERFORCE_PROXY_START = xyes ]; then - echo -n ' p4p' - $p4p $PERFORCE_PROXY_OPTIONS - fi - if [ -x $p4web -a x$PERFORCE_WEB_START = xyes ]; then - echo -n ' p4web' - su -fm $PERFORCE_USER -c "$p4web $PERFORCE_WEB_OPTIONS &" >/dev/null 2>&1 - 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 - if [ -x $p4p ]; then - killall -u 0 p4p > /dev/null 2>&1 && echo -n ' p4p' - fi - if [ -x $p4web ]; then - killall -u $PERFORCE_USER p4web > /dev/null 2>&1 && echo -n ' p4web' - fi - ;; -restart) - $0 stop - sleep 1 - $0 start - ;; -checkpoint) - [ -f @PREFIX@/etc/perforce.conf ] && . @PREFIX@/etc/perforce.conf - if [ -x $p4d -a x$PERFORCE_START = xyes ]; then - su -fm $PERFORCE_USER -c "$p4d -r $PERFORCE_ROOT -jc" - fi - ;; -*) - echo "usage: $0 {start|stop|restart|checkpoint}" - exit 64 - ;; -esac diff --git a/devel/p4web/pkg-descr b/devel/p4web/pkg-descr deleted file mode 100644 index e6d35851b44b..000000000000 --- a/devel/p4web/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/p4web/pkg-install b/devel/p4web/pkg-install deleted file mode 100644 index 88b4d17472f4..000000000000 --- a/devel/p4web/pkg-install +++ /dev/null @@ -1,51 +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 - mkdir -p $PERFORCE_HOME $PERFORCE_LOGS $PERFORCE_ROOT - chown -R $USER:$GROUP $PERFORCE_HOME - fi - ;; -esac diff --git a/devel/p4web/pkg-plist b/devel/p4web/pkg-plist deleted file mode 100644 index 31e0893152cc..000000000000 --- a/devel/p4web/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 |