pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sformat: Import version 3.7



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Mon Jan 30 16:00:57 2023 +0100
Changeset:	3c45f1cdb400ba4e1e0c0d315e3fb1ce9af41cb5

Modified Files:
	Makefile
Added Files:
	sformat/COMMIT_MSG
	sformat/DESCR
	sformat/Makefile
	sformat/PLIST
	sformat/distinfo
	sformat/patches/patch-sformat_datio.c
	sformat/patches/patch-sformat_sformat.1

Log Message:
sformat: Import version 3.7

COMMIT_MSG contains changelog.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3c45f1cdb400ba4e1e0c0d315e3fb1ce9af41cb5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                |  1 +
 sformat/COMMIT_MSG                      | 84 +++++++++++++++++++++++++++++++++
 sformat/DESCR                           | 11 +++++
 sformat/Makefile                        | 52 ++++++++++++++++++++
 sformat/PLIST                           |  4 ++
 sformat/distinfo                        |  7 +++
 sformat/patches/patch-sformat_datio.c   | 20 ++++++++
 sformat/patches/patch-sformat_sformat.1 | 24 ++++++++++
 8 files changed, 203 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index a67f2cb46b..cbcb2efbd7 100644
--- a/Makefile
+++ b/Makefile
@@ -5271,6 +5271,7 @@ SUBDIR+=	seturgent
 SUBDIR+=	sfeed-git
 SUBDIR+=	sfeed_curses-git
 SUBDIR+=	sflphoned
+SUBDIR+=	sformat
 SUBDIR+=	sgmltools-lite
 SUBDIR+=	shaarli
 SUBDIR+=	shadow
diff --git a/sformat/COMMIT_MSG b/sformat/COMMIT_MSG
new file mode 100644
index 0000000000..5cf146622b
--- /dev/null
+++ b/sformat/COMMIT_MSG
@@ -0,0 +1,84 @@
+sysutils/sformat: Update to 3.7
+
+Switch to schilytools release.
+
+
+AN-2021-09-01:
+- sformat: Added support for gettext() based translations
+  The string "Jörg Schilling" is now separate and in a gettext() call.
+
+
+AN-2021-07-29:
+- sformat: changed open(..., 0) -> open(..., O_RDONLY) for z/OS
+
+  Thanks to a report from Matthew R. Wilson
+
+- sformat:checkmount.c: did use HAVE_SYS_MNTENT_H instead of
+  HAVE_SYS_MNTTAB_H as a result of a typo that was introduced with
+  the code to #include <sys/mnttab.h>.
+
+  Thanks to a report from Matthew R. Wilson
+
+
+AN-2018-10-30:
+- libschily: ovstrcpy() from various programs has been moved to libschily.
+  This affects smake, mkisofs, patch, ved, count, sformat
+
+
+AN-2018-05-25:
+- sformat: The man page used .cs that dos not work with GNU troff because
+  of a GNU troff bug. We no longer use this command for nroff. Note that
+  the GNU troff bug still applies if you try to print the man page.
+
+- sformat: History and Download sections have been added to the man page
+
+
+AN-2018-03-01:
+- sformat: A new option -randv has been added. This option behaves
+  similar to -randrw but does not write to the disk and thus is less
+  harmful to already impaired disks.
+
+- sformat: The random tests now use drand48(). This is needed in order
+  to get a sufficient coverage for modern large disks.
+
+
+AN-2017-09-25:
+- Sformat: The terminating condition for a manual sector size
+  question for Adaptec controllers has been corrected.
+
+
+AN-2016-01-25:
+- sformat: A new option scgopts=list has been introduced.
+
+
+AN-2015-11-26:
+- sformat: diskfmt.c now casts a computation to always result in a long long
+  printf() argument.
+
+
+AN-2015-11-21:
+- sformat: fixed a printf() format size problem on Minix3 32 bits.
+  Thanks to Heiko Eißfeldt for reporting.
+
+
+AN-2013-05-10
+- Include file reordering in sformat to avoid warnings on older platforms
+
+
+AN-2011-08-29:
+- sformat(1) now compiles and works on Win-DOS using the Microsoft compiler.
+
+
+AN-2011-08-10:
+- sformat now only sets up signal handlers for existing signals to support MSC
+
+
+AN-2009-12-29:
+- [...]
+  sformat/datio.c:
+  [...]
+  Do no longer shorten strings using strcpy()/wcscpy() as newer POSIX
+  versions claim that overlapping buffers cause undefined.
+  results and as the Solaris 64 bit libc starting with Build 125,.
+  implements strcpy() using SSE instructions and thus fails with
+  overlapping strings.
diff --git a/sformat/DESCR b/sformat/DESCR
new file mode 100644
index 0000000000..c7a6e97c3e
--- /dev/null
+++ b/sformat/DESCR
@@ -0,0 +1,11 @@
+Sformat is the best SCSI disk tool, I came across in the last 20 years.
+It is able to repair and format nearly any disk, as long as its heads
+are still in working condition and a few percent of its blocks are
+writable. Once you have learned to use it, you will never think of using
+something else. Formating a disk with sformat does not only send a
+scsi-format command to the disk, but also make a detailed surface
+analysis after formating. The defect lists are updated, and you come out
+with a reliable disk, again. Thanks Joerg.
+
+On the other side, like with any other powerful tool, you have to invest
+some time in learning. Well invested time.
diff --git a/sformat/Makefile b/sformat/Makefile
new file mode 100644
index 0000000000..8bbe331cdb
--- /dev/null
+++ b/sformat/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD$
+
+DISTNAME=	2023-01-12
+PKGNAME=	sformat-3.7
+CATEGORIES=	sysutils
+MASTER_SITES=	https://codeberg.org/schilytools/schilytools/archive/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://codeberg.org/schilytools/schilytools/
+COMMENT=	SCSI disk maintainance, formating, and ultimative repair tool
+LICENSE=	cddl-1.0
+
+.include "../../mk/bsd.prefs.mk"
+
+TOOL_DEPENDS+=	smake>=1.7:../../devel/smake
+SMAKE=		MAKEFLAGS= smake
+MAKE_FLAGS+=	DESTDIR=${DESTDIR} INS_BASE=${PREFIX} DEFMANBASE=. MANDIR=${PKGMANDIR}
+# Honor CPPFLAGS, CFLAGS and LDFLAGS
+MAKE_FLAGS+=	CPPOPTX=${CPPFLAGS:Q} COPTX=${CFLAGS:Q} LDOPTX=${LDFLAGS:Q}
+
+SFORMAT_DB=	${PKG_SYSCONFDIR}/sformat.dat
+CONF_FILES=	${PREFIX}/share/examples/sformat/sformat.dat ${SFORMAT_DB}
+SPECIAL_PERMS+=	${PREFIX}/share/examples/sformat/sformat.dat ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0644
+AUTO_MKDIRS=	yes
+
+# Configure config file location
+SUBST_CLASSES+=		fix
+SUBST_STAGE.fix=	pre-configure
+SUBST_FILES.fix+=	sformat/datio.c
+SUBST_FILES.fix+=	sformat/sformat.1
+SUBST_SED.fix=		-e "s,@PKGSRC_SYSCONFDIR@,${PKG_SYSCONFDIR},g"
+SUBST_MESSAGE.fix=	Replace database file path.
+
+# Shared platform specific code for schilytools (provided by smake package)
+.include "../../devel/smake/Makefile.common"
+
+do-configure:
+	cd ${WRKSRC}/inc && ${SMAKE} ${MAKE_FLAGS}
+
+do-build:
+	cd ${WRKSRC} && for library in libschily libscg;		\
+	do								\
+		cd ${WRKSRC}/$${library} && ${SMAKE} ${MAKE_FLAGS};	\
+	done
+	cd ${WRKSRC}/sformat && ${SMAKE} ${MAKE_FLAGS}
+
+do-install:
+	cd ${WRKSRC}/sformat && ${SMAKE} ${MAKE_FLAGS} install
+	${INSTALL_DATA} ${WRKSRC}/sformat/sformat.dat			\
+		${DESTDIR}${PREFIX}/share/examples/sformat/sformat.dat
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sformat/PLIST b/sformat/PLIST
new file mode 100644
index 0000000000..9e55d8bd0c
--- /dev/null
+++ b/sformat/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/sformat
+man/man8/sformat.8
+share/examples/sformat/sformat.dat
diff --git a/sformat/distinfo b/sformat/distinfo
new file mode 100644
index 0000000000..218f005c2e
--- /dev/null
+++ b/sformat/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (2023-01-12.tar.gz) = 14493310db8fe55fcb16f4b13cb6a4bb45ace541254c35e5b4d6d3fb178fc640
+SHA512 (2023-01-12.tar.gz) = a1eb37d5df8d2298ba4da6ccbf4bb937da13e8d9e4d7a8420b4d54a319c028c682e76a85c800d57a35d5f4b81a51b19600bbc2edb94641fa5e721ae23134ce15
+Size (2023-01-12.tar.gz) = 5895061 bytes
+SHA1 (patch-sformat_datio.c) = d1e1a8fa8906f69ae183fcee07a0d2d695c0e015
+SHA1 (patch-sformat_sformat.1) = bd125a26de0412af23198eb26419ac8333ab6a2f
diff --git a/sformat/patches/patch-sformat_datio.c b/sformat/patches/patch-sformat_datio.c
new file mode 100644
index 0000000000..c2be301075
--- /dev/null
+++ b/sformat/patches/patch-sformat_datio.c
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Search database only in current directory and PKG_SYSCONFDIR
+
+--- sformat/datio.c.orig	2023-01-12 14:25:40.000000000 +0000
++++ sformat/datio.c
+@@ -79,12 +79,7 @@ EXPORT	int	datfileerr	__PR((char *, ...)
+ 
+ char	*datpath[] = {
+ 		"",
+-		"/opt/schily/etc/",
+-		"/usr/bert/etc/",
+-		"/etc/",
+-		"/usr/etc/",
+-		"/opt/csw/etc/",
+-		"/opt/schily/etc/",
++		"@PKGSRC_SYSCONFDIR@/",
+ 		NULL
+ 	};
+ 
diff --git a/sformat/patches/patch-sformat_sformat.1 b/sformat/patches/patch-sformat_sformat.1
new file mode 100644
index 0000000000..e11371d1a2
--- /dev/null
+++ b/sformat/patches/patch-sformat_sformat.1
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Search database only in current directory and PKG_SYSCONFDIR
+
+--- sformat/sformat.1.orig	2023-01-30 14:39:40.055988371 +0000
++++ sformat/sformat.1
+@@ -157,7 +157,7 @@ If no file of the appropriate name was f
+ .B sformat
+ looks in the following path:
+ .br
+-.I /opt schily/etc,  /etc,  /usr/etc.
++.I @PKGSRC_SYSCONFDIR@.
+ .br
+ .ne 3
+ .TP
+@@ -1370,7 +1370,7 @@ the end of this partition and the end of
+ .SH FILES
+ .PP
+ .TP 20
+-.B /opt/schily/etc/sformat.dat
++.B @PKGSRC_SYSCONFDIR@/sformat.dat
+ A database with mode pages and disk partitions for disks.
+ .\" .SH "SEE ALSO"
+ .\" .SH DIAGNOSTICS


Home | Main Index | Thread Index | Old Index