mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
- Rename nonstandard src directory to files
- Modernize ports
This commit is contained in:
parent
888ec9005f
commit
1a638f333a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404857
@ -5,19 +5,20 @@ PORTNAME= tcpblast
|
||||
PORTVERSION= 1.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= benchmarks net ipv6
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Measures the throughput of a TCP connection
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
PLIST_FILES= bin/tcpblast
|
||||
|
||||
USES= uidfix
|
||||
WRKSRC= ${WRKDIR}/src
|
||||
do-build:
|
||||
${CC} ${CFLAGS} ${FILESDIR}/${PORTNAME}.c -o ${WRKDIR}/${PORTNAME}
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}
|
||||
${CP} -RP ${.CURDIR}/src ${WRKDIR}
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define BLKSIZE 1024
|
||||
@ -26,7 +27,7 @@ struct servent *sp;
|
||||
struct hostent *host;
|
||||
|
||||
long starts, startms, stops, stopms, expms;
|
||||
struct timeval ti;
|
||||
struct timeval ti;
|
||||
struct timezone tiz;
|
||||
|
||||
char greet[BLKSIZE] = "Hi!";
|
@ -1,6 +0,0 @@
|
||||
PROG= tcpblast
|
||||
SRCS= tcpblast.c
|
||||
NO_MAN= yes
|
||||
BINDIR= ${PREFIX}/bin
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -11,12 +11,13 @@ MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Nagios plug-in to check CPU usage
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_FILES= libexec/nagios/check_cpu_usage
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
${INSTALL_SCRIPT} ${.CURDIR}/src/check_cpu_usage \
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/check_cpu_usage \
|
||||
${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -4,8 +4,8 @@
|
||||
PORTNAME= nagios-check_hdd_health
|
||||
PORTVERSION= 1.1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= # No distfile
|
||||
DISTFILES= # No distfile
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Nagios plug-in to check HDD health from S.M.A.R.T
|
||||
@ -13,9 +13,13 @@ COMMENT= Nagios plug-in to check HDD health from S.M.A.R.T
|
||||
RUN_DEPENDS= smartmontools>=0:${PORTSDIR}/sysutils/smartmontools
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_FILES= libexec/nagios/check_hdd_health
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
@${INSTALL_SCRIPT} ${.CURDIR}/src/check_hdd_health ${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/check_hdd_health \
|
||||
${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +0,0 @@
|
||||
libexec/nagios/check_hdd_health
|
@ -10,20 +10,15 @@ DISTFILES= # none
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Utility to correct requested TCP receive segment size
|
||||
|
||||
WRKSRC= ${WRKDIR}/src
|
||||
|
||||
SRC= ${.CURDIR}/src
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
PLIST_FILES= bin/tcpmssd man/man8/tcpmssd.8.gz
|
||||
|
||||
pre-patch:
|
||||
@${CP} -R ${SRC} ${WRKDIR}
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} && ${MAKE} tcpmssd)
|
||||
${CC} ${CFLAGS} ${FILESDIR}/${PORTNAME}.c -o ${WRKDIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tcpmssd ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/tcpmssd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -6,24 +6,27 @@ PORTVERSION= 1.5
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
EXTRACT_ONLY= # none
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Authentication manager for OpenSSH (making secure auth easier)
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
SRC= ${.CURDIR}/src
|
||||
PLIST_FILES= bin/cvs-safesh \
|
||||
bin/safesh \
|
||||
bin/safeshinstall \
|
||||
bin/scpsh \
|
||||
man/man1/safesh.1.gz
|
||||
|
||||
# XXX Anybody that know how to create manlinks from ports easily, please
|
||||
# contact me.
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${SRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_SCRIPT} ${SRC}/cvs-safesh.sh ${STAGEDIR}${PREFIX}/bin/cvs-safesh
|
||||
${INSTALL_MAN} ${SRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
@${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/scpsh
|
||||
@${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/safeshinstall
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/cvs-safesh.sh ${STAGEDIR}${PREFIX}/bin/cvs-safesh
|
||||
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/scpsh
|
||||
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/safeshinstall
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +0,0 @@
|
||||
bin/cvs-safesh
|
||||
bin/safesh
|
||||
bin/safeshinstall
|
||||
bin/scpsh
|
||||
man/man1/safesh.1.gz
|
@ -4,24 +4,20 @@
|
||||
PORTNAME= personality
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= System configuration management utility to alter system personality
|
||||
|
||||
WRKSRC= ${WRKDIR}/src
|
||||
NO_BUILD= YES
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/personality
|
||||
|
||||
do-extract:
|
||||
@ ${RM} -rf ${WRKDIR}
|
||||
@ ${MKDIR} ${WRKDIR}
|
||||
@ ${CP} -RP ${.CURDIR}/src ${WRKDIR}
|
||||
PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${PREFIX}/man/man8
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.8 ${STAGEDIR}${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -13,19 +13,13 @@ COMMENT= Maintenance utility for sgml catalog files
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
SUB_FILES= mkcatalog
|
||||
PLIST_FILES= sbin/mkcatalog
|
||||
SCRIPTS_ENV= CONFIGURE_TARGETS=${CONFIGURE_TARGETS}
|
||||
|
||||
SRC= ${.CURDIR}/src
|
||||
CONFIGURE_TARGETS= mkcatalog
|
||||
|
||||
pre-configure:
|
||||
.for f in ${CONFIGURE_TARGETS}
|
||||
${CP} ${SRC}/${f}.in ${WRKDIR}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/mkcatalog \
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/mkcatalog \
|
||||
${STAGEDIR}${PREFIX}/sbin/mkcatalog
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -47,7 +47,7 @@ verbose_msg ()
|
||||
esac
|
||||
}
|
||||
|
||||
PREFIX=@@PREFIX@@
|
||||
PREFIX=%%PREFIX%%
|
||||
TMPDIR=/tmp
|
||||
ARGV0=`sh_basename $0`
|
||||
|
12
textproc/mkcatalog/scripts/configure
vendored
12
textproc/mkcatalog/scripts/configure
vendored
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
for i in ${CONFIGURE_TARGETS}
|
||||
do
|
||||
if [ -f ${WRKDIR}/${i}.in ]; then
|
||||
cat ${WRKDIR}/${i}.in | /usr/bin/sed \
|
||||
-e "s;@@PREFIX@@;${PREFIX};g" \
|
||||
> ${WRKDIR}/${i}
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user