Lines 6-46
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= e2fsprogs |
8 |
PORTNAME= e2fsprogs |
9 |
PORTVERSION= 1.32 |
9 |
PORTVERSION= 1.35.w20040131 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 0 |
11 |
CATEGORIES= sysutils |
11 |
CATEGORIES= sysutils |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
|
|
14 |
DISTNAME= ${PORTNAME}-1.35-WIP-0131 |
14 |
|
15 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
16 |
MAINTAINER= matthias.andree@gmx.de |
16 |
COMMENT= A set of utilities and library to manipulate an ext2 filesystem |
17 |
COMMENT= Utilities and library to manipulate an ext2 or ext3 filesystem |
17 |
|
18 |
|
|
|
19 |
.if !defined(DISABLE_NLS) |
20 |
USE_GETTEXT= yes |
21 |
.endif |
22 |
|
23 |
WRKSRC= ${WRKDIR}/${PORTNAME}-1.35 |
24 |
|
25 |
PATCH_STRIP= -p1 |
18 |
USE_REINPLACE= yes |
26 |
USE_REINPLACE= yes |
19 |
USE_GMAKE= yes |
27 |
USE_GMAKE= yes |
20 |
INSTALLS_SHLIB= yes |
28 |
INSTALLS_SHLIB= yes |
|
|
29 |
NO_FILTER_SHLIBS= yes |
21 |
GNU_CONFIGURE= yes |
30 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ARGS= --enable-elf-shlibs |
31 |
CONFIGURE_ARGS= --enable-elf-shlibs --disable-fsck "--with-ldopts=-L${LOCALBASE}/lib" |
23 |
CONFIGURE_ENV= CPPFLAGS="-Derrcode_t=long" |
32 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" |
|
|
33 |
.if defined(DISABLE_NLS) |
34 |
CONFIGURE_ARGS+= --disable-nls |
35 |
PLIST_SUB= NLS="@comment " |
36 |
.else |
37 |
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" |
38 |
PLIST_SUB= NLS="" |
39 |
.endif |
24 |
|
40 |
|
25 |
MAN1= chattr.1 lsattr.1 uuidgen.1 |
41 |
MAN1= chattr.1 lsattr.1 uuidgen.1 |
26 |
MAN8= badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 fsck.8 \ |
42 |
MAN8= badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 \ |
27 |
findfs.8 mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 \ |
43 |
mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 \ |
28 |
fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 |
44 |
fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 \ |
|
|
45 |
findfs.8 blkid.8 logsave.8 |
46 |
|
47 |
pre-everything:: |
48 |
@${ECHO_CMD} "-------------------------------------------------------------" |
49 |
.if defined(DISABLE_NLS) |
50 |
@${ECHO_CMD} "National language support disabled, -DDISABLE_NLS in effect. " |
51 |
.else |
52 |
@${ECHO_CMD} "Use -DDISABLE_NLS to build without national language support." |
53 |
.endif |
54 |
@${ECHO_CMD} "-------------------------------------------------------------" |
29 |
|
55 |
|
30 |
post-patch: |
56 |
post-patch: |
31 |
@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${CHMOD} 644 |
57 |
${REINPLACE_CMD} -e 's|-DRESOURCE_TRACK||' ${WRKSRC}/e2fsck/Makefile.in |
32 |
@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \ |
58 |
${GUNZIP_CMD} ${WRKSRC}/tests/m_*/expect*.gz |
33 |
's|LIST_HEAD|LIN_LST_HEAD|g ; \ |
59 |
${REINPLACE_CMD} -e 's|OS type: Linux|OS type: (unknown os)|' \ |
34 |
s|et/com_err.h|com_err.h|g ; s|<malloc.h>|<stdlib.h>|' |
60 |
-e 's|Filesystem OS type: Linux|Filesystem OS type: unknown|' \ |
35 |
|
61 |
-e 's|group root|group wheel|' \ |
36 |
pre-build: |
62 |
-e '/Exit status is 0/ N;s/Exit status is 0\n/Exit status is 0/' \ |
37 |
@cd ${WRKSRC}/lib/et && ${GMAKE} |
63 |
${WRKSRC}/tests/m_*/expect.1 |
38 |
@cd ${WRKSRC}/lib/ss && ${GMAKE} |
64 |
|
|
|
65 |
post-extract: |
66 |
${CHMOD} u+w ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot |
67 |
|
68 |
post-build: |
69 |
cd ${WRKSRC}/tests && ${GMAKE} check |
70 |
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} -o ${WRKSRC}/fsck_ext2fs ${FILESDIR}/fsck_ext2fs.c |
39 |
|
71 |
|
40 |
post-install: |
72 |
post-install: |
41 |
@${MKDIR} ${PREFIX}/include/ext2fs |
73 |
${RM} ${PREFIX}/sbin/filefrag |
42 |
@${INSTALL_DATA} ${WRKSRC}/lib/ext2fs/*.h ${PREFIX}/include/ext2fs |
74 |
${RM} ${PREFIX}/man/man8/filefrag.8 |
43 |
@${MKDIR} ${PREFIX}/include/uuid |
75 |
${INSTALL_PROGRAM} ${WRKSRC}/fsck_ext2fs ${PREFIX}/sbin/ |
44 |
@${INSTALL_DATA} ${WRKSRC}/lib/uuid/*.h ${PREFIX}/include/uuid |
76 |
${INSTALL_PROGRAM} ${WRKSRC}/e2fsck/e2fsck.shared ${PREFIX}/sbin/e2fsck |
|
|
77 |
${INSTALL_PROGRAM} ${WRKSRC}/e2fsck/e2fsck.static ${PREFIX}/sbin/e2fsck.static |
78 |
${LN} 2>/dev/null ${PREFIX}/sbin/e2fsck.static /sbin/e2fsck || ${CP} -n -p ${PREFIX}/sbin/e2fsck.static /sbin/e2fsck |
79 |
${LN} 2>/dev/null ${PREFIX}/sbin/fsck_ext2fs /sbin/ || ${CP} -n -p ${PREFIX}/sbin/fsck_ext2fs /sbin/ |
80 |
${MKDIR} ${PREFIX}/include/ext2fs |
81 |
${INSTALL_DATA} ${WRKSRC}/lib/ext2fs/*.h ${PREFIX}/include/ext2fs/ |
82 |
${MKDIR} ${PREFIX}/include/uuid |
83 |
${INSTALL_DATA} ${WRKSRC}/lib/uuid/*.h ${PREFIX}/include/uuid/ |
84 |
.for i in e2p ext2fs uuid |
85 |
${INSTALL_DATA} ${WRKSRC}/lib/${i}/lib${i}.a ${PREFIX}/lib/ |
86 |
.endfor |
45 |
|
87 |
|
46 |
.include <bsd.port.mk> |
88 |
.include <bsd.port.mk> |