1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

Add sysutils/srmt, Schily's enhanced rmt implementation.

This commit is contained in:
Jimmy Olgeni 2003-02-17 21:23:41 +00:00
parent fa077df6b7
commit fb85eec8ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75743
9 changed files with 167 additions and 0 deletions

View File

@ -220,6 +220,7 @@
SUBDIR += socket
SUBDIR += socklog
SUBDIR += spinner
SUBDIR += srmt
SUBDIR += ssync
SUBDIR += stat
SUBDIR += stmpclean

45
sysutils/srmt/Makefile Normal file
View File

@ -0,0 +1,45 @@
# New ports collection makefile for: srmt
# Date created: Wed Jan 15 13:11:24 CET 2003
# Whom: olgeni@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= srmt
PORTVERSION= 1.4.3
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.berlios.de/pub/star/
DISTNAME= star-${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
MAKE_ENV= MAKEPROG=${GMAKE} CCOM=${CC}
MAN1= srmt.1
post-extract:
.if ${MACHINE_ARCH} != "i386" || ${CC} != "cc"
@${LN} -sf i386-freebsd-cc.rul \
${WRKSRC}/RULES/${MACHINE_ARCH}-freebsd-${CC}.rul
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/etc/default/rmt|${PREFIX}/etc/srmt.conf|g' ${WRKSRC}/rmt/rmt.c ${WRKSRC}/rmt/rmt.1
@${REINPLACE_CMD} -e 's|!!PREFIX!!|${PREFIX}|g' ${WRKSRC}/rmt/rmt.1
@${FIND} ${WRKSRC} -name \*.bak | ${XARGS} ${RM}
do-install:
@${INSTALL_PROGRAM} \
${WRKSRC}/rmt/OBJ/${MACHINE_ARCH}-freebsd-${CC}/rmt \
${PREFIX}/sbin/srmt
@${INSTALL_MAN} ${WRKSRC}/rmt/rmt.1 ${MANPREFIX}/man/man1/srmt.1
@${INSTALL_DATA} ${WRKSRC}/rmt/rmt.dfl ${PREFIX}/etc/srmt.conf.dist
@if [ ! -f ${PREFIX}/etc/srmt.conf ]; then \
${CP} -p ${PREFIX}/etc/srmt.conf.dist ${PREFIX}/etc/srmt.conf; \
fi
@${CHMOD} u+s ${PREFIX}/sbin/srmt
.include <bsd.port.mk>

1
sysutils/srmt/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (star-1.4.3.tar.bz2) = e0760d494c1962d9d784d0c4378d40df

View File

@ -0,0 +1,17 @@
$FreeBSD$
--- RULES/rules.cnf.orig Sun Jul 21 02:26:12 2002
+++ RULES/rules.cnf Sun Jul 21 02:27:02 2002
@@ -33,8 +33,9 @@
#
# Hack until the <mach>-<os>-*cc.rul files are updated
#
-_HCCCOM= $(OARCH:%-gcc=gcc)
-HCCCOM= $(_HCCCOM:%-cc=cc)
+#_HCCCOM= $(OARCH:%-gcc=gcc)
+#HCCCOM= $(_HCCCOM:%-cc=cc)
+HCCCOM= $(C_ARCH)
_CCCOM= $(_UNIQ)$(CCCOM)
__CCCOM= $(_CCCOM:$(_UNIQ)=$(HCCCOM))

View File

@ -0,0 +1,42 @@
$FreeBSD$
--- RULES/i386-freebsd-cc.rul.orig Wed Oct 16 05:43:39 2002
+++ RULES/i386-freebsd-cc.rul Tue Nov 26 03:09:44 2002
@@ -24,7 +24,7 @@
###########################################################################
CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
-CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
+CFLAGS+= -static $(COPTS) $(CWARNOPTS) $(COPTX)
CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
COPTS=
@@ -47,7 +47,7 @@
LIBS_PATH= -L$(OLIBSDIR)
-LDFLAGS= $(LDOPTS) $(LDOPTX)
+LDFLAGS+= -static $(LDOPTS) $(LDOPTX)
LDLIBS= $(LIBS) $(LIBX)
#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH)
@@ -57,14 +57,14 @@
FLOAT_OPTIONS=
-CC= @echo " ==> COMPILING \"$@\""; gcc
-LDCC= @echo " ==> LINKING \"$@\""; gcc
-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
+CC= @echo " ==> COMPILING \"$@\""; ${CCOM}
+LDCC= @echo " ==> LINKING \"$@\""; ${CCOM}
+DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ${CCOM}
RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
ARFLAGS= cr
LORDER= lorder
TSORT= tsort
RMDEP= :
-MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
+MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); ${CCOM} -M
MKDEP_OUT=

View File

@ -0,0 +1,52 @@
$FreeBSD$
--- rmt/rmt.1.orig Sun Nov 10 17:58:57 2002
+++ rmt/rmt.1 Sun Jan 19 15:13:21 2003
@@ -17,10 +17,7 @@
.SH NAME
rmt \- remote magnetic tape protocol server
.SH SYNOPSIS
-.B /opt/schily/sbin/rmt
-.br
-.B /etc/rmt
-
+.B !!PREFIX!!/sbin/srmt
.SH DESCRIPTION
.IX "rmt command" "" "\fLrmt\fP \(em remote magnetic tape protocol server"
.IX "remote magnetic tape protocol server" "" "remote magnetic tape protocol server \(em \fLrmt\fP"
@@ -519,8 +516,8 @@
to exit.
.SH FILES
.TP
-/etc/default/rmt
-Default values can be set for the following options in /etc/default/rmt.
+/usr/local/etc/srmt.conf
+Default values can be set for the following options in /usr/local/etc/srmt.conf.
For example:
.sp
.BR DEBUG= /tmp/rmt.debug
@@ -568,7 +565,7 @@
is not a socket from a remote host,
.B rmt
will compare the host entry from
-.B /etc/default/rmt
+.B /usr/local/etc/srmt.conf
with the following strings:
.RS
.TP 10
@@ -635,12 +632,12 @@
adds some security features to the server that make it behave
slightly different from older implementations.
Read the above documentation about the file
-/etc/default/rmt
+/usr/local/etc/srmt.conf
to make sure your local installation is configured for your needs.
.LP
To grant the same permissions as with old
.B rmt
-servers, create a file /etc/default/rmt and add the following lines
+servers, create a file /usr/local/etc/srmt.conf and add the following lines
to this file:
.LP
.BR USER= *

View File

@ -0,0 +1 @@
Schily's enhanced rmt implementation

4
sysutils/srmt/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
Schily's version of the remote tape server program, with Sun and
GNU enhancements.
WWW: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/star.html

4
sysutils/srmt/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
sbin/srmt
@unexec if cmp -s %D/etc/srmt.conf %D/etc/srmt.conf.dist; then rm -f %D/etc/srmt.conf; fi
etc/srmt.conf.dist
@exec [ -f %B/srmt.conf ] || cp %B/%f %B/srmt.conf