aboutsummaryrefslogtreecommitdiff
path: root/sysutils/srmt
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2003-02-17 21:23:41 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2003-02-17 21:23:41 +0000
commitfb85eec8ed931f4fd2d9b6558722d86defee0333 (patch)
treee0883ccd5dac7ea8559108405ab49ef64c69e8ee /sysutils/srmt
parentfa077df6b72fba1706d6491d01412d546f3fb740 (diff)
downloadports-fb85eec8ed931f4fd2d9b6558722d86defee0333.tar.gz
ports-fb85eec8ed931f4fd2d9b6558722d86defee0333.zip
Notes
Diffstat (limited to 'sysutils/srmt')
-rw-r--r--sysutils/srmt/Makefile45
-rw-r--r--sysutils/srmt/distinfo1
-rw-r--r--sysutils/srmt/files/patch-RULES_rules.cnf17
-rw-r--r--sysutils/srmt/files/patch-aa42
-rw-r--r--sysutils/srmt/files/patch-rmt_rmt.152
-rw-r--r--sysutils/srmt/pkg-comment1
-rw-r--r--sysutils/srmt/pkg-descr4
-rw-r--r--sysutils/srmt/pkg-plist4
8 files changed, 166 insertions, 0 deletions
diff --git a/sysutils/srmt/Makefile b/sysutils/srmt/Makefile
new file mode 100644
index 000000000000..3ea43565f0e4
--- /dev/null
+++ b/sysutils/srmt/Makefile
@@ -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>
diff --git a/sysutils/srmt/distinfo b/sysutils/srmt/distinfo
new file mode 100644
index 000000000000..d1d4cb8ebc58
--- /dev/null
+++ b/sysutils/srmt/distinfo
@@ -0,0 +1 @@
+MD5 (star-1.4.3.tar.bz2) = e0760d494c1962d9d784d0c4378d40df
diff --git a/sysutils/srmt/files/patch-RULES_rules.cnf b/sysutils/srmt/files/patch-RULES_rules.cnf
new file mode 100644
index 000000000000..1fc4dcbd13eb
--- /dev/null
+++ b/sysutils/srmt/files/patch-RULES_rules.cnf
@@ -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))
diff --git a/sysutils/srmt/files/patch-aa b/sysutils/srmt/files/patch-aa
new file mode 100644
index 000000000000..e724def86681
--- /dev/null
+++ b/sysutils/srmt/files/patch-aa
@@ -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=
diff --git a/sysutils/srmt/files/patch-rmt_rmt.1 b/sysutils/srmt/files/patch-rmt_rmt.1
new file mode 100644
index 000000000000..4c21c60c4ca1
--- /dev/null
+++ b/sysutils/srmt/files/patch-rmt_rmt.1
@@ -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= *
diff --git a/sysutils/srmt/pkg-comment b/sysutils/srmt/pkg-comment
new file mode 100644
index 000000000000..5f6fb6d60792
--- /dev/null
+++ b/sysutils/srmt/pkg-comment
@@ -0,0 +1 @@
+Schily's enhanced rmt implementation
diff --git a/sysutils/srmt/pkg-descr b/sysutils/srmt/pkg-descr
new file mode 100644
index 000000000000..c06822a48a12
--- /dev/null
+++ b/sysutils/srmt/pkg-descr
@@ -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
diff --git a/sysutils/srmt/pkg-plist b/sysutils/srmt/pkg-plist
new file mode 100644
index 000000000000..a8dc27ee22fe
--- /dev/null
+++ b/sysutils/srmt/pkg-plist
@@ -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