Upgrade to 1.27

PR: ports/41293
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
This commit is contained in:
Clive Lin 2002-08-04 07:27:59 +00:00
parent f56dd5cdc0
commit f1b3108e15
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63951
6 changed files with 130 additions and 24 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= e2fsprogs
PORTVERSION= 1.22
PORTVERSION= 1.27
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -24,15 +24,23 @@ CONFIGURE_ENV= CPPFLAGS="-I/usr/include -I${LOCALBASE}/include \
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|<malloc.h>|<stdlib.h>|'
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 <bsd.port.mk>

View file

@ -1 +1 @@
MD5 (e2fsprogs-1.22.tar.gz) = a2b689fda4e954df0258c2605bc65d9b
MD5 (e2fsprogs-1.27.tar.gz) = 485b43875becc98dd11ac4c2a30dd734

View file

@ -1,15 +1,10 @@
$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@
@ -18,7 +13,7 @@ $FreeBSD$
-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@

View file

@ -3,15 +3,6 @@ $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
#

View file

@ -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

View file

@ -6,14 +6,20 @@ 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
@ -35,7 +41,9 @@ 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