diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2024-09-27 12:48:46 +0200 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-06 16:17:35 +0100 |
commit | 6e2da9672f79f44048d597f0f61e4646cdeade9d (patch) | |
tree | c92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/progsreiserfs | |
parent | math/sdpa: speed up build (diff) |
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.
Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.
Approved by: portmgr (rene)
Reviewed by: mat
Pull Request: https://github.com/freebsd/freebsd-ports/pull/302
PR: 281988
Diffstat (limited to 'filesystems/progsreiserfs')
-rw-r--r-- | filesystems/progsreiserfs/Makefile | 44 | ||||
-rw-r--r-- | filesystems/progsreiserfs/distinfo | 3 | ||||
-rw-r--r-- | filesystems/progsreiserfs/files/extrapatch-progsreiserfs_libmisc_Makefile.in | 37 | ||||
-rw-r--r-- | filesystems/progsreiserfs/files/patch-libdal_file.c | 26 | ||||
-rw-r--r-- | filesystems/progsreiserfs/files/patch-libreiserfs_journal.c | 11 | ||||
-rw-r--r-- | filesystems/progsreiserfs/pkg-descr | 6 | ||||
-rw-r--r-- | filesystems/progsreiserfs/pkg-plist | 40 |
7 files changed, 167 insertions, 0 deletions
diff --git a/filesystems/progsreiserfs/Makefile b/filesystems/progsreiserfs/Makefile new file mode 100644 index 000000000000..77c84c817a49 --- /dev/null +++ b/filesystems/progsreiserfs/Makefile @@ -0,0 +1,44 @@ +PORTNAME= progsreiserfs +DISTVERSION= 0.3.1-rc8 +PORTREVISION= 8 +CATEGORIES= filesystems sysutils +MASTER_SITES= http://www.cgsecurity.org/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Utilities and library to manipulate ReiserFS partitions +WWW= https://reiserfs.osdn.org.ua + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= libtool +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX=${PREFIX}/share +CONFIGURE_ARGS= --disable-debug --disable-Werror +CFLAGS+= -Dgetopt_long_only=getopt_long + +EXTRA_PATCHES= ${FILESDIR}/extrapatch-progsreiserfs_libmisc_Makefile.in + +OPTIONS_DEFINE= NLS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +.else +CONFIGURE_ARGS+=--disable-nls +.endif + +post-patch: + @${REINPLACE_CMD} '/_LDADD =/s/=/= $$(INTLLIBS)/' \ + ${WRKSRC}/demos/Makefile.in + @${REINPLACE_CMD} -e 's|sys/int_types.h|inttypes.h|' \ + ${WRKSRC}/libreiserfs/tools.c ${WRKSRC}/include/reiserfs/* + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so + +.include <bsd.port.mk> diff --git a/filesystems/progsreiserfs/distinfo b/filesystems/progsreiserfs/distinfo new file mode 100644 index 000000000000..851742dec79c --- /dev/null +++ b/filesystems/progsreiserfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730905181 +SHA256 (progsreiserfs-0.3.1-rc8.tar.gz) = 1473899a21df0679a32ebde5a35c158468a7e51a0cb6fd89d77c42bfde9b6399 +SIZE (progsreiserfs-0.3.1-rc8.tar.gz) = 399279 diff --git a/filesystems/progsreiserfs/files/extrapatch-progsreiserfs_libmisc_Makefile.in b/filesystems/progsreiserfs/files/extrapatch-progsreiserfs_libmisc_Makefile.in new file mode 100644 index 000000000000..b482ec8293dd --- /dev/null +++ b/filesystems/progsreiserfs/files/extrapatch-progsreiserfs_libmisc_Makefile.in @@ -0,0 +1,37 @@ +--- progsreiserfs/libmisc/Makefile.in.orig 2002-12-12 12:38:22 UTC ++++ progsreiserfs/libmisc/Makefile.in +@@ -110,7 +110,7 @@ am__quote = @am__quote@ + install_sh = @install_sh@ + + noinst_LTLIBRARIES = libmisc.la +-libmisc_la_SOURCES = tools.c getopt.c getopt1.c ++libmisc_la_SOURCES = tools.c getopt.c + + INCLUDES = -I$(top_srcdir)/include @INTLINCS@ + subdir = progsreiserfs/libmisc +@@ -121,7 +121,7 @@ LTLIBRARIES = $(noinst_LTLIBRARIES) + + libmisc_la_LDFLAGS = + libmisc_la_LIBADD = +-am_libmisc_la_OBJECTS = tools.lo getopt.lo getopt1.lo ++am_libmisc_la_OBJECTS = tools.lo getopt.lo + libmisc_la_OBJECTS = $(am_libmisc_la_OBJECTS) + + DEFS = @DEFS@ +@@ -130,7 +130,7 @@ CPPFLAGS = @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + depcomp = $(SHELL) $(top_srcdir)/depcomp +-@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/getopt.Plo $(DEPDIR)/getopt1.Plo \ ++@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/getopt.Plo \ + @AMDEP_TRUE@ $(DEPDIR)/tools.Plo + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +@@ -177,7 +177,6 @@ distclean-compile: + -rm -f *.tab.c + + @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt.Plo@am__quote@ +-@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt1.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/tools.Plo@am__quote@ + + distclean-depend: diff --git a/filesystems/progsreiserfs/files/patch-libdal_file.c b/filesystems/progsreiserfs/files/patch-libdal_file.c new file mode 100644 index 000000000000..76a7926d532f --- /dev/null +++ b/filesystems/progsreiserfs/files/patch-libdal_file.c @@ -0,0 +1,26 @@ +--- libdal/file.c.orig 2002-12-12 12:32:34 UTC ++++ libdal/file.c +@@ -14,6 +14,7 @@ + + #if defined(__freebsd__) + # define O_LARGEFILE 0 ++# include <sys/disk.h> + #endif + + #ifndef DJGPP +@@ -154,6 +155,15 @@ static count_t file_len(dal_t *dal) { + + #endif + ++#ifdef DIOCGMEDIASIZE ++ ++ if (ioctl(*((int *)dal->entity), DIOCGMEDIASIZE, &size) >= 0) ++ return (count_t)(size / dal->blocksize); ++ ++ file_save_error(dal); ++ ++#endif ++ + if ((max_off = lseek(*((int *)dal->entity), 0, SEEK_END)) == (off_t)-1) { + file_save_error(dal); + return 0; diff --git a/filesystems/progsreiserfs/files/patch-libreiserfs_journal.c b/filesystems/progsreiserfs/files/patch-libreiserfs_journal.c new file mode 100644 index 000000000000..da24c4593308 --- /dev/null +++ b/filesystems/progsreiserfs/files/patch-libreiserfs_journal.c @@ -0,0 +1,11 @@ +--- libreiserfs/journal.c.orig 2002-12-12 12:32:35 UTC ++++ libreiserfs/journal.c +@@ -482,7 +482,7 @@ static int callback_journal_replay(reise + blk_t reiserfs_journal_boundary_transactions(reiserfs_journal_t *journal, + reiserfs_journal_trans_t *oldest, reiserfs_journal_trans_t *newest) + { +- reiserfs_gauge_t *gauge; ++ reiserfs_gauge_t *gauge = NULL; + struct reiserfs_replay_desc desc; + + desc.oldest_id = 0xffffffff; desc.newest_id = 0x0; diff --git a/filesystems/progsreiserfs/pkg-descr b/filesystems/progsreiserfs/pkg-descr new file mode 100644 index 000000000000..db3516d4aedd --- /dev/null +++ b/filesystems/progsreiserfs/pkg-descr @@ -0,0 +1,6 @@ +This is a library for reiserfs filesystem access and manipulation. +The primary goal is to develop the nice, full functionality library +wich might be linked against any projects which needed reiserfs filesystem +access. There are GNU Parted, GNU GRUB, Yaboot, Partimage, EVMS, etc. + +progsreiserfs supports versions 3.5, 3.6 with standard and relocated journal. diff --git a/filesystems/progsreiserfs/pkg-plist b/filesystems/progsreiserfs/pkg-plist new file mode 100644 index 000000000000..76e0ff06b7ad --- /dev/null +++ b/filesystems/progsreiserfs/pkg-plist @@ -0,0 +1,40 @@ +include/dal/dal.h +include/dal/file.h +include/reiserfs/bitmap.h +include/reiserfs/block.h +include/reiserfs/core.h +include/reiserfs/dir.h +include/reiserfs/endian.h +include/reiserfs/exception.h +include/reiserfs/file.h +include/reiserfs/filesystem.h +include/reiserfs/gauge.h +include/reiserfs/hashes.h +include/reiserfs/journal.h +include/reiserfs/key.h +include/reiserfs/node.h +include/reiserfs/object.h +include/reiserfs/path.h +include/reiserfs/reiserfs.h +include/reiserfs/segment.h +include/reiserfs/tools.h +include/reiserfs/tree.h +lib/libdal-0.3.so.0 +lib/libdal-0.3.so.0.0.1 +lib/libdal.a +lib/libdal.so +lib/libreiserfs-0.3.so.0 +lib/libreiserfs-0.3.so.0.0.1 +lib/libreiserfs.a +lib/libreiserfs.so +share/man/man8/cpfs.reiserfs.8.gz +share/man/man8/mkfs.reiserfs.8.gz +share/man/man8/reiserfs.8.gz +share/man/man8/resizefs.reiserfs.8.gz +share/man/man8/tunefs.reiserfs.8.gz +sbin/cpfs.reiserfs +sbin/fsck.reiserfs +sbin/mkfs.reiserfs +sbin/resizefs.reiserfs +sbin/tunefs.reiserfs +share/aclocal/progsreiserfs.m4 |