Index: head/sysutils/e2fsprogs/Makefile =================================================================== --- head/sysutils/e2fsprogs/Makefile (revision 63950) +++ head/sysutils/e2fsprogs/Makefile (revision 63951) @@ -1,38 +1,46 @@ # New ports collection makefile for: e2fsprogs # Date created: 3 July 2001 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= e2fsprogs -PORTVERSION= 1.22 +PORTVERSION= 1.27 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org USE_REINPLACE= yes USE_GMAKE= yes INSTALLS_SHLIB= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-elf-shlibs CONFIGURE_ENV= CPPFLAGS="-I/usr/include -I${LOCALBASE}/include \ -Derrcode_t=long" \ LDFLAGS="-L${LOCALBASE}/lib" MAN1= chattr.1 lsattr.1 uuidgen.1 MAN8= badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 fsck.8 \ - mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 + mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 \ + fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 post-patch: + @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${CHMOD} 644 @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \ 's|LIST_HEAD|LIN_LST_HEAD|g ; \ s|et/com_err.h|com_err.h|g ; s|||' +pre-build: + @cd ${WRKSRC}/lib/et && ${GMAKE} + @cd ${WRKSRC}/lib/ss && ${GMAKE} + post-install: - ${MKDIR} ${PREFIX}/include/ext2fs - ${INSTALL_DATA} ${WRKSRC}/lib/ext2fs/*.h ${PREFIX}/include/ext2fs + @${MKDIR} ${PREFIX}/include/ext2fs + @${INSTALL_DATA} ${WRKSRC}/lib/ext2fs/*.h ${PREFIX}/include/ext2fs + @${MKDIR} ${PREFIX}/include/uuid + @${INSTALL_DATA} ${WRKSRC}/lib/uuid/*.h ${PREFIX}/include/uuid .include Property changes on: head/sysutils/e2fsprogs/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/sysutils/e2fsprogs/distinfo =================================================================== --- head/sysutils/e2fsprogs/distinfo (revision 63950) +++ head/sysutils/e2fsprogs/distinfo (revision 63951) @@ -1 +1 @@ -MD5 (e2fsprogs-1.22.tar.gz) = a2b689fda4e954df0258c2605bc65d9b +MD5 (e2fsprogs-1.27.tar.gz) = 485b43875becc98dd11ac4c2a30dd734 Property changes on: head/sysutils/e2fsprogs/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/sysutils/e2fsprogs/files/patch-MCONFIG.in =================================================================== --- head/sysutils/e2fsprogs/files/patch-MCONFIG.in (revision 63950) +++ head/sysutils/e2fsprogs/files/patch-MCONFIG.in (revision 63951) @@ -1,25 +1,20 @@ - -$FreeBSD$ - ---- MCONFIG.in.orig Sat Jun 23 07:25:59 2001 -+++ MCONFIG.in Tue Jul 3 18:29:41 2001 -@@ -57,15 +57,15 @@ - # Library definitions +--- MCONFIG.in.orig Mon Feb 25 05:03:57 2002 ++++ MCONFIG.in Sun Aug 4 15:15:37 2002 +@@ -57,14 +57,14 @@ # LIB = $(top_builddir)/lib --LIBSS = $(LIB)/libss@LIB_EXT@ + LIBSS = $(LIB)/libss@LIB_EXT@ -LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ -+LIBSS = /usr/lib/libss.so +LIBCOM_ERR = /usr/lib/libcom_err.so LIBE2P = $(LIB)/libe2p@LIB_EXT@ LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@ -STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ -STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ -+STATIC_LIBSS = /usr/lib/libss.a ++STATIC_LIBSS = STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ +STATIC_LIBCOM_ERR = /usr/lib/libcom_err.a STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ Property changes on: head/sysutils/e2fsprogs/files/patch-MCONFIG.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in =================================================================== --- head/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in (revision 63950) +++ head/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in (revision 63951) @@ -1,26 +1,17 @@ $FreeBSD$ --- debugfs/Makefile.in.orig Sat Jun 23 07:25:59 2001 +++ debugfs/Makefile.in Tue Jul 3 18:49:18 2001 -@@ -14,7 +14,7 @@ - PROGS= debugfs - MANPAGES= debugfs.8 - --MK_CMDS= _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds -+MK_CMDS= mk_cmds - - DEBUG_OBJS= debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \ - lsdel.o dump.o setsuper.o logdump.o @@ -75,9 +75,9 @@ # the Makefile.in file # debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \ - $(top_builddir)/lib/ss/ss_err.h + debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \ - $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ + $(top_srcdir)/lib/ss/ss.h \ $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ Property changes on: head/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/sysutils/e2fsprogs/files/patch-lib::ext2fs::ismounted.c =================================================================== --- head/sysutils/e2fsprogs/files/patch-lib::ext2fs::ismounted.c (nonexistent) +++ head/sysutils/e2fsprogs/files/patch-lib::ext2fs::ismounted.c (revision 63951) @@ -0,0 +1,104 @@ +--- lib/ext2fs/ismounted.c.orig Mon Feb 25 05:03:59 2002 ++++ lib/ext2fs/ismounted.c Sun Aug 4 02:51:39 2002 +@@ -146,50 +146,6 @@ + return retval; + } + +-/* +- * Check to see if we're dealing with the swap device. +- */ +-static int is_swap_device(const char *file) +-{ +- FILE *f; +- char buf[1024], *cp; +- dev_t file_dev; +- struct stat st_buf; +- int ret = 0; +- +- file_dev = 0; +-#ifndef __GNU__ /* The GNU hurd is broken with respect to stat devices */ +- if (stat(file, &st_buf) == 0) +- file_dev = st_buf.st_rdev; +-#endif +- +- if (!(f = fopen("/proc/swaps", "r"))) +- return 0; +- /* Skip the first line */ +- fgets(buf, sizeof(buf), f); +- while (!feof(f)) { +- if (!fgets(buf, sizeof(buf), f)) +- break; +- if ((cp = strchr(buf, ' ')) != NULL) +- *cp = 0; +- if ((cp = strchr(buf, '\t')) != NULL) +- *cp = 0; +- if (strcmp(buf, file) == 0) { +- ret++; +- break; +- } +-#ifndef __GNU__ +- if (file_dev && (stat(buf, &st_buf) == 0) && +- file_dev == st_buf.st_rdev) { +- ret++; +- break; +- } +-#endif +- } +- fclose(f); +- return ret; +-} +- + static errcode_t check_mntent(const char *file, int *mount_flags, + char *mtpt, int mtlen) + { +@@ -248,6 +204,50 @@ + return 0; + } + #endif /* HAVE_GETMNTINFO */ ++ ++/* ++ * Check to see if we're dealing with the swap device. ++ */ ++static int is_swap_device(const char *file) ++{ ++ FILE *f; ++ char buf[1024], *cp; ++ dev_t file_dev; ++ struct stat st_buf; ++ int ret = 0; ++ ++ file_dev = 0; ++#ifndef __GNU__ /* The GNU hurd is broken with respect to stat devices */ ++ if (stat(file, &st_buf) == 0) ++ file_dev = st_buf.st_rdev; ++#endif ++ ++ if (!(f = fopen("/proc/swaps", "r"))) ++ return 0; ++ /* Skip the first line */ ++ fgets(buf, sizeof(buf), f); ++ while (!feof(f)) { ++ if (!fgets(buf, sizeof(buf), f)) ++ break; ++ if ((cp = strchr(buf, ' ')) != NULL) ++ *cp = 0; ++ if ((cp = strchr(buf, '\t')) != NULL) ++ *cp = 0; ++ if (strcmp(buf, file) == 0) { ++ ret++; ++ break; ++ } ++#ifndef __GNU__ ++ if (file_dev && (stat(buf, &st_buf) == 0) && ++ file_dev == st_buf.st_rdev) { ++ ret++; ++ break; ++ } ++#endif ++ } ++ fclose(f); ++ return ret; ++} + + /* + * ext2fs_check_mount_point() returns 1 if the device is mounted, 0 Property changes on: head/sysutils/e2fsprogs/files/patch-lib::ext2fs::ismounted.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/sysutils/e2fsprogs/pkg-plist =================================================================== --- head/sysutils/e2fsprogs/pkg-plist (revision 63950) +++ head/sysutils/e2fsprogs/pkg-plist (revision 63951) @@ -1,41 +1,49 @@ bin/chattr bin/lsattr bin/uuidgen include/ext2fs/bitops.h include/ext2fs/brel.h include/ext2fs/dosio.h include/ext2fs/e2image.h include/ext2fs/ext2_err.h +include/ext2fs/ext2_ext_attr.h include/ext2fs/ext2_fs.h include/ext2fs/ext2_io.h include/ext2fs/ext2_types.h include/ext2fs/ext2fs.h include/ext2fs/ext2fsP.h include/ext2fs/irel.h +include/ext2fs/jfs_compat.h include/ext2fs/jfs_dat.h include/ext2fs/jfs_user.h +include/ext2fs/kernel-jbd.h +include/ext2fs/kernel-list.h +include/uuid/uuid.h +include/uuid/uuidP.h info/libext2fs.info.gz lib/libe2p.a lib/libe2p.so lib/libe2p.so.2 lib/libext2fs.a lib/libext2fs.so lib/libext2fs.so.2 lib/libuuid.a lib/libuuid.so lib/libuuid.so.1 sbin/badblocks sbin/debugfs sbin/dumpe2fs sbin/e2fsck sbin/e2image sbin/e2label sbin/fsck sbin/fsck.ext2 sbin/fsck.ext3 sbin/mke2fs sbin/mkfs.ext2 +sbin/mkfs.ext3 sbin/mklost+found sbin/resize2fs sbin/tune2fs +@dirrm include/uuid @dirrm include/ext2fs Property changes on: head/sysutils/e2fsprogs/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property