mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
- Update to util-linux version 2.25.2
- Change 'rename' references to 'linrename' - Adopt port
This commit is contained in:
parent
f5d55a1426
commit
3ff4650fcd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377897
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= linrename
|
||||
PORTVERSION= 2.22.2
|
||||
PORTVERSION= 2.25.2
|
||||
CATEGORIES= sysutils
|
||||
#MASTER_SITES= KERNEL_ORG/linux/utils/util-linux/v${PORTVERSION}
|
||||
MASTER_SITES= http://ftp.ntu.edu.tw/ftp/linux/%SUBDIR%/ \
|
||||
@ -12,7 +12,7 @@ MASTER_SITES= http://ftp.ntu.edu.tw/ftp/linux/%SUBDIR%/ \
|
||||
MASTER_SITE_SUBDIR= utils/util-linux/v${PORTVERSION:R}
|
||||
DISTNAME= util-linux-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= johans@FreeBSD.org
|
||||
COMMENT= Rename multiple files using substitution
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/misc-utils
|
||||
@ -22,20 +22,24 @@ USES= tar:xz
|
||||
|
||||
CPPFLAGS+= -I../include \
|
||||
-DHAVE_DIRFD -DHAVE_ERR_H -DHAVE_LANGINFO_H -DHAVE_LOCALE_H \
|
||||
-DHAVE_NANOSLEEP -DHAVE_FSYNC \
|
||||
-DHAVE_PROGRAM_INVOCATION_SHORT_NAME \
|
||||
-Dprogram_invocation_short_name=\"${PROGNAME}\" \
|
||||
-DPACKAGE_STRING=\"util-linux\ ${PORTVERSION}\"
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
||||
|
||||
post-patch:
|
||||
${LN} -sf rename.1 ${BUILD_WRKSRC}/${PORTNAME}.1
|
||||
${REINPLACE_CMD} 's/rename(1)/${PORTNAME}(1)/' ${BUILD_WRKSRC}/rename.c
|
||||
|
||||
do-build:
|
||||
(cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o ${PORTNAME} \
|
||||
rename.c ${LDFLAGS})
|
||||
cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o ${PORTNAME} \
|
||||
rename.c ${LDFLAGS}
|
||||
|
||||
do-install:
|
||||
(cd ${INSTALL_WRKSRC} \
|
||||
cd ${INSTALL_WRKSRC} \
|
||||
&& ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin \
|
||||
&& ${INSTALL_MAN} ${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1)
|
||||
&& ${INSTALL_MAN} ${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (util-linux-2.22.2.tar.xz) = 929b517fa39b16a61ec536514e08940a381b92befc629d0348e3097920dd2f12
|
||||
SIZE (util-linux-2.22.2.tar.xz) = 3100832
|
||||
SHA256 (util-linux-2.25.2.tar.xz) = e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6
|
||||
SIZE (util-linux-2.25.2.tar.xz) = 3703644
|
||||
|
Loading…
Reference in New Issue
Block a user