Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2000 19:51:32 +0800 (CST)
From:      leeym@cae.ce.ntu.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19014: new port: sysutils/rmm
Message-ID:  <200006051151.TAA45693@bsd.caece.net>

next in thread | raw e-mail | index | archive | help

>Number:         19014
>Category:       ports
>Synopsis:       new port: sysutils/rmm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 05 05:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
CAE group, Civil engineering, NTU, Taiwan
>Environment:

FreeBSD utopia.leeym.yi.org 4.0-STABLE FreeBSD 4.0-STABLE #4: Mon Jun  5 07:39:32 CST 2000     root@utopia.leeym.yi.org:/usr/src/sys/compile/UTOPIA  i386

>Description:

rmm is a small bash script, that implements a trashbin in your homedirectory
called ~/trash. All deleted files will be stored there. If a file is being
deleted, it will be renamed to an incrementing index-number (starting at 1)
and the extension ".file". The old filename and path is saved in an additional
file ".recover". rmm includes all basic operations for trashbin-handling like:
delete to trash, recover a single file, recover the whole trash, list trash,
delete single file in trash, delete the whole trashdirectory, ...
I think, it's an enrichment for every user-oriented system.

>How-To-Repeat:

	

>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rmm
#	rmm/Makefile
#	rmm/files
#	rmm/files/md5
#	rmm/patches
#	rmm/patches/patch-aa
#	rmm/pkg
#	rmm/pkg/COMMENT
#	rmm/pkg/DESCR
#	rmm/pkg/PLIST
#
echo c - rmm
mkdir -p rmm > /dev/null 2>&1
echo x - rmm/Makefile
sed 's/^X//' >rmm/Makefile << 'END-of-rmm/Makefile'
X# New ports collection makefile for:	rmm
X# Date created:				June 5th 2000
X# Whom:	      				Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	rmm
XPORTVERSION=	0.9.9
XDISTFILES=	rmm
XCATEGORIES=	sysutils
XMASTER_SITES=	http://linux.htlinn.ac.at/projects/
X
XMAINTAINER=	leeym@cae.ce.ntu.edu.tw
X
XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2
X
XNOMAN=		yes
XNO_BUILD=	yes
X
Xdo-extract:
X	@${RM} -rf ${WRKDIR}
X	@${MKDIR} -p ${WRKDIR}/${PKGNAME}
X	${CP} -RP ${DISTDIR}/${DISTFILES} ${WRKSRC}
X
Xdo-install:
X	@${INSTALL_SCRIPT} ${WRKSRC}/rmm ${PREFIX}/bin/rmm
X
X.include <bsd.port.mk>
END-of-rmm/Makefile
echo c - rmm/files
mkdir -p rmm/files > /dev/null 2>&1
echo x - rmm/files/md5
sed 's/^X//' >rmm/files/md5 << 'END-of-rmm/files/md5'
XMD5 (rmm) = b5910d3af53ff81b91257e1f5df0ec7a
END-of-rmm/files/md5
echo c - rmm/patches
mkdir -p rmm/patches > /dev/null 2>&1
echo x - rmm/patches/patch-aa
sed 's/^X//' >rmm/patches/patch-aa << 'END-of-rmm/patches/patch-aa'
X--- rmm.orig	Mon Jun  5 18:33:22 2000
X+++ rmm	Mon Jun  5 18:33:22 2000
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X #
X #
X # rmm - rm improved ;-)
X@@ -145,7 +145,7 @@
X     message "14";
X     message "15";
X     if [ $UID = 0 ]; then
X-        echo '#!/bin/bash' > /usr/local/bin/fullname
X+        echo '#!/usr/local/bin/bash' > /usr/local/bin/fullname
X         echo 'if ! [ -f "$1" ]; then' >> $FULLNAME_FILE;
X         echo '  exit 0;' >> $FULLNAME_FILE;
X         echo 'fi' >> $FULLNAME_FILE;
X@@ -156,7 +156,7 @@
X         echo 'echo $FILEPATH/$FILENAME' >> $FULLNAME_FILE;
X         echo 'exit 0' >> $FULLNAME_FILE;
X         chmod 755 $FULLNAME_FILE;
X-        chown root.root $FULLNAME_FILE;
X+        chown root.wheel $FULLNAME_FILE;
X         echo -e $rc_done_up;
X     else
X         echo -e $rc_failed_up;
END-of-rmm/patches/patch-aa
echo c - rmm/pkg
mkdir -p rmm/pkg > /dev/null 2>&1
echo x - rmm/pkg/COMMENT
sed 's/^X//' >rmm/pkg/COMMENT << 'END-of-rmm/pkg/COMMENT'
Xrmm - remove improved
END-of-rmm/pkg/COMMENT
echo x - rmm/pkg/DESCR
sed 's/^X//' >rmm/pkg/DESCR << 'END-of-rmm/pkg/DESCR'
Xrmm is a small bash script, that implements a trashbin in your homedirectory 
Xcalled ~/trash. All deleted files will be stored there. If a file is being 
Xdeleted, it will be renamed to an incrementing index-number (starting at 1) 
Xand the extension ".file". The old filename and path is saved in an additional 
Xfile ".recover". rmm includes all basic operations for trashbin-handling like: 
Xdelete to trash, recover a single file, recover the whole trash, list trash, 
Xdelete single file in trash, delete the whole trashdirectory, ... 
XI think, it's an enrichment for every user-oriented system.
X
XIdea and development by tuxx <tuxx@aon.at> and PITT <pitt@td.co.at>
END-of-rmm/pkg/DESCR
echo x - rmm/pkg/PLIST
sed 's/^X//' >rmm/pkg/PLIST << 'END-of-rmm/pkg/PLIST'
Xbin/rmm
END-of-rmm/pkg/PLIST
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006051151.TAA45693>