|
Lines 7-13
Link Here
|
| 7 |
|
7 |
|
| 8 |
PORTNAME= e2fsprogs |
8 |
PORTNAME= e2fsprogs |
| 9 |
PORTVERSION= 1.40.2 |
9 |
PORTVERSION= 1.40.2 |
| 10 |
PORTREVISION?= 0 |
10 |
PORTREVISION?= 1 |
| 11 |
CATEGORIES?= sysutils |
11 |
CATEGORIES?= sysutils |
| 12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} |
| 13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
|
Lines 15-44
Link Here
|
| 15 |
MAINTAINER?= matthias.andree@gmx.de |
15 |
MAINTAINER?= matthias.andree@gmx.de |
| 16 |
COMMENT?= Utilities and library to manipulate ext2/ext3 filesystems |
16 |
COMMENT?= Utilities and library to manipulate ext2/ext3 filesystems |
| 17 |
|
17 |
|
| 18 |
.if !defined(WITHOUT_NLS) |
|
|
| 19 |
USE_GETTEXT= yes |
| 20 |
.endif |
| 21 |
|
| 22 |
PATCH_STRIP= -p1 |
18 |
PATCH_STRIP= -p1 |
|
|
19 |
|
| 20 |
USE_LDCONFIG= yes |
| 23 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
| 24 |
CONFIGURE_ARGS?= --disable-fsck --disable-e2initrd-helper \ |
22 |
CONFIGURE_ARGS?=--disable-fsck --disable-e2initrd-helper \ |
| 25 |
'--with-ldopts=-L${LOCALBASE}/lib' \ |
23 |
'--with-ldopts=-L${LOCALBASE}/lib' \ |
| 26 |
--with-cc='${CC}' --with-linker='${LD}' \ |
24 |
--with-cc='${CC}' --with-linker='${LD}' \ |
| 27 |
--with-ccopts='${CFLAGS}' \ |
25 |
--with-ccopts='${CFLAGS}' \ |
| 28 |
--with-root-prefix='${PREFIX}' |
26 |
--with-root-prefix='${PREFIX}' |
| 29 |
# for unknown reasons, the assembly bitops cause SIGSEGV. |
27 |
# for unknown reasons, the assembly bitops cause SIGSEGV. |
| 30 |
# _EXT2_USE_C_VERSIONS_ uses C bitops, these appear to work fine. |
28 |
# _EXT2_USE_C_VERSIONS_ uses C bitops, these appear to work fine. |
| 31 |
CONFIGURE_ENV+= CPPFLAGS='${CPPFLAGS} -I${WRKSRC}/lib -I${LOCALBASE}/include -D_EXT2_USE_C_VERSIONS_' |
29 |
CONFIGURE_ENV+= CPPFLAGS='${CPPFLAGS} -I${WRKSRC}/lib \ |
| 32 |
.if defined(WITHOUT_NLS) |
30 |
-I${LOCALBASE}/include -D_EXT2_USE_C_VERSIONS_' |
| 33 |
CONFIGURE_ARGS+= --disable-nls |
31 |
|
| 34 |
PLIST_SUB= NLS="@comment " |
32 |
OPTIONS= NLS "Enable national language support" on |
| 35 |
.else |
|
|
| 36 |
MAKE_ARGS+= STATIC_LIBS="../lib/libext2fs.a ../lib/libcom_err.a ../lib/libblkid.a \ |
| 37 |
../lib/libuuid.a ${LOCALBASE}/lib/libintl.a ${LOCALBASE}/lib/libiconv.a" |
| 38 |
PLIST_SUB= NLS="" |
| 39 |
.endif |
| 40 |
USE_LDCONFIG= yes |
| 41 |
PKGDEINSTALL= ${PKGINSTALL} |
| 42 |
|
33 |
|
| 43 |
.if !defined(MASTERDIR) |
34 |
.if !defined(MASTERDIR) |
| 44 |
MAN1= chattr.1 lsattr.1 |
35 |
MAN1= chattr.1 lsattr.1 |
|
Lines 48-84
Link Here
|
| 48 |
fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 \ |
39 |
fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 \ |
| 49 |
findfs.8 blkid.8 logsave.8 fsck_ext2fs.8 |
40 |
findfs.8 blkid.8 logsave.8 fsck_ext2fs.8 |
| 50 |
|
41 |
|
| 51 |
pre-build: |
|
|
| 52 |
@${ECHO_CMD} "-------------------------------------------------------------" |
| 53 |
.if defined(WITHOUT_NLS) |
| 54 |
@${ECHO_CMD} "National language support disabled, -DWITHOUT_NLS in effect. " |
| 55 |
.else |
| 56 |
@${ECHO_CMD} "Use -DWITHOUT_NLS to build without national language support." |
| 57 |
.endif |
| 58 |
@${ECHO_CMD} "-------------------------------------------------------------" |
| 59 |
|
| 60 |
post-extract: |
42 |
post-extract: |
| 61 |
${CHMOD} u+w ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot \ |
43 |
@${CHMOD} u+w ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot \ |
| 62 |
${WRKSRC}/${CONFIGURE_SCRIPT} |
44 |
${WRKSRC}/${CONFIGURE_SCRIPT} |
| 63 |
.endif |
45 |
.endif |
| 64 |
|
46 |
|
| 65 |
.include <bsd.port.pre.mk> |
47 |
.include <bsd.port.pre.mk> |
| 66 |
|
48 |
|
|
|
49 |
.if defined(WITHOUT_NLS) |
| 50 |
CONFIGURE_ARGS+=--disable-nls |
| 51 |
PLIST_SUB= NLS="@comment " |
| 52 |
.else |
| 53 |
USE_GETTEXT= yes |
| 54 |
MAKE_ARGS+= STATIC_LIBS="../lib/libext2fs.a ../lib/libcom_err.a \ |
| 55 |
../lib/libblkid.a ../lib/libuuid.a \ |
| 56 |
${LOCALBASE}/lib/libintl.a ${LOCALBASE}/lib/libiconv.a" |
| 57 |
PLIST_SUB= NLS="" |
| 58 |
.endif |
| 59 |
|
| 67 |
post-patch: |
60 |
post-patch: |
| 68 |
${REINPLACE_CMD} -E -e 's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \ |
61 |
@${REINPLACE_CMD} -Ee \ |
|
|
62 |
's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \ |
| 69 |
${WRKSRC}/lib/*/Makefile.in |
63 |
${WRKSRC}/lib/*/Makefile.in |
| 70 |
@: # disable uuidgen |
64 |
# disable uuidgen and filefrag |
| 71 |
${REINPLACE_CMD} \ |
65 |
@${REINPLACE_CMD} -Ee \ |
| 72 |
-e 's/^\(UPROGS.*\) uuidgen\(.*\)/\1\2/' \ |
66 |
's/^(UPROGS.*) uuidgen(.*)/\1\2/; \ |
| 73 |
-e 's/^\(UMANPAGES.*\) uuidgen.1\(.*\)/\1\2/' \ |
67 |
s/^(UMANPAGES.*) uuidgen.1(.*)/\1\2/; \ |
|
|
68 |
s/^(USPROGS.*) filefrag(.*)/\1\2/; \ |
| 69 |
s/filefrag\.8 //' \ |
| 74 |
${WRKSRC}/misc/Makefile.in |
70 |
${WRKSRC}/misc/Makefile.in |
|
|
71 |
# don't build/install libext2fs.info |
| 72 |
@${REINPLACE_CMD} -e 's/ install-doc-libs$$//' ${WRKSRC}/Makefile.in |
| 75 |
|
73 |
|
| 76 |
.if ${MASTERDIR} == ${.CURDIR} |
74 |
.if ${MASTERDIR} == ${.CURDIR} |
| 77 |
post-build: |
75 |
post-build: |
| 78 |
.if !defined(WITHOUT_NLS) |
76 |
.if !defined(WITHOUT_NLS) |
| 79 |
cd ${WRKSRC}/po && ${MAKE} update-gmo |
77 |
cd ${WRKSRC}/po && ${MAKE} update-gmo |
| 80 |
.endif |
78 |
.endif |
| 81 |
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -s -static ${LIBS} -o ${WRKSRC}/fsck_ext2fs ${FILESDIR}/fsck_ext2fs.c |
79 |
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -s -static ${LIBS} \ |
|
|
80 |
-o ${WRKSRC}/fsck_ext2fs ${FILESDIR}/fsck_ext2fs.c |
| 82 |
cd ${WRKSRC}/tests && ${MAKE} check |
81 |
cd ${WRKSRC}/tests && ${MAKE} check |
| 83 |
# While the ${MAKE} check can take a minute on an end user's system, the |
82 |
# While the ${MAKE} check can take a minute on an end user's system, the |
| 84 |
# correctness of tools such as e2fsck is critical to the health of the |
83 |
# correctness of tools such as e2fsck is critical to the health of the |
|
Lines 90-106
Link Here
|
| 90 |
# -- Matthias Andree, package maintainer, 2006-06-12 |
89 |
# -- Matthias Andree, package maintainer, 2006-06-12 |
| 91 |
|
90 |
|
| 92 |
post-install: |
91 |
post-install: |
| 93 |
${RM} ${PREFIX}/sbin/filefrag |
92 |
${INSTALL_PROGRAM} ${WRKSRC}/fsck_ext2fs ${PREFIX}/sbin |
| 94 |
${RM} ${PREFIX}/man/man8/filefrag.8 |
93 |
${INSTALL_MAN} ${FILESDIR}/fsck_ext2fs.8 ${MANPREFIX}/man/man8 |
| 95 |
${RM} ${PREFIX}/info/libext2fs.info.gz |
|
|
| 96 |
${INSTALL_PROGRAM} ${WRKSRC}/fsck_ext2fs ${PREFIX}/sbin/ |
| 97 |
${INSTALL_MAN} ${FILESDIR}/fsck_ext2fs.8 ${PREFIX}/man/man8/ |
| 98 |
[ -f ${PREFIX}/etc/mke2fs.conf ] || \ |
94 |
[ -f ${PREFIX}/etc/mke2fs.conf ] || \ |
| 99 |
${CP} -p ${PREFIX}/etc/mke2fs.conf.dist ${PREFIX}/etc/mke2fs.conf |
95 |
${CP} -p ${PREFIX}/etc/mke2fs.conf.dist \ |
| 100 |
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
96 |
${PREFIX}/etc/mke2fs.conf |
| 101 |
@${ECHO_MSG} |
97 |
cd ${PREFIX}/sbin && ${LN} -f fsck_ext2fs e2fsck /usr/sbin || \ |
| 102 |
@${CAT} ${PKGMESSAGE} |
98 |
${INSTALL_PROGRAM} fsck_ext2fs e2fsck /usr/sbin 2>/dev/null |
| 103 |
@${ECHO_MSG} |
99 |
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_MSG} |
| 104 |
.endif |
100 |
.endif |
| 105 |
|
101 |
|
| 106 |
.include <bsd.port.post.mk> |
102 |
.include <bsd.port.post.mk> |