Add rename.
Rename is a quick and powerful tool written in C, featuring extended regular expression support for searching and substituting pattern strings in filenames. Rename can rename, convert to lowercase/uppercase, and change the ownership of a large number of files. WWW: http://rename.berlios.de/ PR: ports/83314 Submitted by: Chad Castleberry <crcastle@ius.edu>
This commit is contained in:
@@ -420,6 +420,7 @@
|
||||
SUBDIR += rdiff-backup-devel
|
||||
SUBDIR += readlink
|
||||
SUBDIR += reed
|
||||
SUBDIR += rename
|
||||
SUBDIR += reoback
|
||||
SUBDIR += rfstool
|
||||
SUBDIR += rlogview
|
||||
|
||||
26
sysutils/rename/Makefile
Normal file
26
sysutils/rename/Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
# New ports collection makefile for: rename
|
||||
# Date created: 7 July 2005
|
||||
# Whom: Chad Castleberry AKA ritalin
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= rename
|
||||
PORTVERSION= 1.3
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://portfolio.iu.edu/crcastle/
|
||||
|
||||
MAINTAINER= crcastle@ius.edu
|
||||
COMMENT= Rename multiple files using regular expressions
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_GETOPT_LONG=yes
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
MAN1= rename.1
|
||||
|
||||
post-extract:
|
||||
@${RM} -f ${WRKSRC}/config.cache
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
sysutils/rename/distinfo
Normal file
2
sysutils/rename/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
MD5 (rename-1.3.tar.gz) = 00817ce4509a6c7aaf1a20b0ade581cc
|
||||
SIZE (rename-1.3.tar.gz) = 88118
|
||||
33
sysutils/rename/files/patch-Makefile.in
Normal file
33
sysutils/rename/files/patch-Makefile.in
Normal file
@@ -0,0 +1,33 @@
|
||||
--- Makefile.in.orig Tue Jul 12 04:27:47 2005
|
||||
+++ Makefile.in Tue Jul 12 09:40:39 2005
|
||||
@@ -8,7 +8,7 @@
|
||||
MANDIR = @prefix@/man/man1
|
||||
|
||||
DEFINES = -DHAVE_CONFIG_H ${VERSION}
|
||||
-CFLAGS = -Wall -O3 ${DEBUG} ${DEFINES}
|
||||
+CFLAGS += -Wall ${DEBUG} ${DEFINES}
|
||||
|
||||
|
||||
OBJS = rename.o fixtoken.o misc.o @LIBOBJS@
|
||||
@@ -16,7 +16,7 @@
|
||||
all: rename
|
||||
|
||||
rename: $(OBJS)
|
||||
- $(CC) $(CFLAGS) -o $@ $^
|
||||
+ $(CC) $(CFLAGS) @LDFLAGS@ -o $@ $^
|
||||
strip $@
|
||||
|
||||
static: $(OBJS)
|
||||
@@ -32,9 +32,11 @@
|
||||
install:
|
||||
install -o root -g wheel -m 0755 -s rename $(BINDIR)
|
||||
install -o root -g wheel -m 0644 rename.1 $(MANDIR)
|
||||
-
|
||||
+
|
||||
rename.o: rename.c rename.h
|
||||
regex.o: regex.c regex.h
|
||||
fixtoken.o: fixtoken.c
|
||||
misc.o: misc.c
|
||||
|
||||
+.c.o:
|
||||
+ $(CC) $(CFLAGS) @CPPFLAGS@ -o $@ -c $<
|
||||
10
sysutils/rename/pkg-descr
Normal file
10
sysutils/rename/pkg-descr
Normal file
@@ -0,0 +1,10 @@
|
||||
Rename is a quick and powerful tool written in C, featuring extended regular
|
||||
expression support for searching and substituting pattern strings in filenames.
|
||||
|
||||
Rename can rename, convert to lowercase/uppercase, and change the ownership of
|
||||
a large number of files.
|
||||
|
||||
WWW: http://rename.berlios.de/
|
||||
|
||||
- Chad
|
||||
crcastle@ius.edu
|
||||
Reference in New Issue
Block a user