mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
- fix IEEE violation/SIGFPE abort on alpha that failed the f_crashdisk test
(patch by Greg Lewis) - fix compile failure on FreeBSD 5 when older port version is installed (problem reported by Tim Robbins; FreeBSD 4 was unaffected) - ignore m_large_file test on alpha and sparc64, apparently the test only stumbles over a different default block size and the failure isn't serious (problem reported by Greg Lewis) - cosmetic: swap $(CC) and gmake check in post-build so check comes last - bump PORTREVISION: the patches change the code on some systems - pkg-message.in: * use install when ln fails, /sbin and /usr/local need not be the same file system * tell the user he needs to repeat the steps after port upgrade - revise pkg-message generation and move it to pre-install, no need to cat(1) the file, sed(1) can read files by itself. - add pkg-deinstall: remind the user to remove e2fsck and fsck_ext2fs from /sbin if he's deinstalling for good, rather than upgrading. PR: 63167 Submitted by: Matthias Andree <matthias.andree@gmx.de>
This commit is contained in:
parent
0fe0dc5577
commit
d06cdbebe0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101581
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= e2fsprogs
|
||||
PORTVERSION= 1.35.w20040131
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -29,7 +30,7 @@ INSTALLS_SHLIB= yes
|
||||
NO_FILTER_SHLIBS= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --enable-elf-shlibs --disable-fsck "--with-ldopts=-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
|
||||
CONFIGURE_ENV+= CPPFLAGS='-I${WRKSRC}/lib -I${LOCALBASE}/include'
|
||||
.if defined(DISABLE_NLS)
|
||||
CONFIGURE_ARGS+= --disable-nls
|
||||
PLIST_SUB= NLS="@comment "
|
||||
@ -37,6 +38,9 @@ PLIST_SUB= NLS="@comment "
|
||||
MAKE_ARGS+= STATIC_LIBS="../lib/libext2fs.a ../lib/libcom_err.a ../lib/libblkid.a ../lib/libuuid.a ${LOCALBASE}/lib/libintl.a ${LOCALBASE}/lib/libiconv.a"
|
||||
PLIST_SUB= NLS=""
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
CFLAGS+= -mieee
|
||||
.endif
|
||||
|
||||
CONFLICTS= ossp-uuid-*
|
||||
|
||||
@ -68,13 +72,17 @@ post-patch:
|
||||
-e 's|group root|group wheel|' \
|
||||
-e '/Exit status is 0/ N;s/Exit status is 0\n/Exit status is 0/' \
|
||||
${WRKSRC}/tests/m_*/expect.1
|
||||
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
|
||||
${RM} -r ${WRKSRC}/tests/m_large_file
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
@${CAT} ${FILESDIR}/pkg-message.in | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" > ${PKGMESSAGE}
|
||||
pre-install:
|
||||
${RM} -f ${PKGMESSAGE}
|
||||
${SED} -e "s:%%PREFIX%%:${PREFIX}:" ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}/tests && ${GMAKE} check
|
||||
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} -o ${WRKSRC}/fsck_ext2fs ${FILESDIR}/fsck_ext2fs.c
|
||||
cd ${WRKSRC}/tests && ${GMAKE} check
|
||||
|
||||
post-install:
|
||||
${RM} ${PREFIX}/sbin/filefrag
|
||||
|
@ -2,5 +2,9 @@ To have your ext2 and ext3 filesystems fsck'ed correctly without explicitly
|
||||
invoking the fsck_ext2fs utility installed by this port you will need to
|
||||
create links for the fsck utilities installed by this port in /sbin, e.g.
|
||||
|
||||
ln %%PREFIX%%/sbin/fsck_ext2fs /sbin/
|
||||
ln %%PREFIX%%/sbin/e2fsck.static /sbin/e2fsck
|
||||
ln -f %%PREFIX%%/sbin/fsck_ext2fs /sbin/ 2>/dev/null \
|
||||
|| install -m755 %%PREFIX%%/sbin/fsck_ext2fs /sbin/
|
||||
ln -f %%PREFIX%%/sbin/e2fsck.static /sbin/e2fsck 2>/dev/null \
|
||||
|| install -m755 %%PREFIX%%/sbin/e2fsck.static /sbin/e2fsck
|
||||
|
||||
IMPORTANT: you also need to repeat the above steps after a port upgrade!
|
||||
|
9
sysutils/e2fsprogs/pkg-deinstall
Normal file
9
sysutils/e2fsprogs/pkg-deinstall
Normal file
@ -0,0 +1,9 @@
|
||||
if [ "$2" = "POST-DEINSTALL" ] ; then cat - <<_EOF
|
||||
|
||||
If you are deinstalling the e2fsprogs port for good, rather than upgrading it,
|
||||
remember to remove the files you have installed into /sbin, example:
|
||||
|
||||
rm -f /sbin/fsck_ext2fs /sbin/e2fsck
|
||||
|
||||
_EOF
|
||||
fi
|
Loading…
Reference in New Issue
Block a user