Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

4
sysutils/mtools/DESCR Normal file
View File

@@ -0,0 +1,4 @@
Mtools is a collection of utilities to access MS-DOS and Atari FAT
disks from GNU and Unix without mounting them. It supports Win'95
style long file names, OS/2 Xdf disks, and 2m disks (store up to
1992k on a high density 3 1/2-inch disk).

24
sysutils/mtools/Makefile Normal file
View File

@@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.55 2013/01/11 20:29:54 is Exp $
DISTNAME= mtools-4.0.18
#PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GNU:=mtools/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= is@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/mtools/
COMMENT= FAT (MS-DOS, Atari) disk access tools
LICENSE= gnu-gpl-v3 # or later
GNU_CONFIGURE= yes
USE_TOOLS+= gmake makeinfo
INFO_FILES= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
LIBS+= ${BUILDLINK_LDADD.iconv}
.include "../../mk/bsd.pkg.mk"

66
sysutils/mtools/PLIST Normal file
View File

@@ -0,0 +1,66 @@
@comment $NetBSD: PLIST,v 1.10 2011/03/09 20:25:08 asau Exp $
bin/amuFormat.sh
${PLIST.floppyd}bin/floppyd
${PLIST.floppyd}bin/floppyd_installtest
bin/lz
bin/mattrib
bin/mbadblocks
bin/mcat
bin/mcd
bin/mcheck
bin/mclasserase
bin/mcomp
bin/mcopy
bin/mdel
bin/mdeltree
bin/mdir
bin/mdu
bin/mformat
bin/minfo
bin/mkmanifest
bin/mlabel
bin/mmd
bin/mmount
bin/mmove
bin/mpartition
bin/mrd
bin/mren
bin/mshortname
bin/mshowfat
bin/mtools
bin/mtoolstest
bin/mtype
bin/mxtar
bin/mzip
bin/tgz
bin/uz
info/mtools.info
man/man1/floppyd.1
man/man1/floppyd_installtest.1
man/man1/mattrib.1
man/man1/mbadblocks.1
man/man1/mcat.1
man/man1/mcd.1
man/man1/mclasserase.1
man/man1/mcopy.1
man/man1/mdel.1
man/man1/mdeltree.1
man/man1/mdir.1
man/man1/mdu.1
man/man1/mformat.1
man/man1/minfo.1
man/man1/mkmanifest.1
man/man1/mlabel.1
man/man1/mmd.1
man/man1/mmount.1
man/man1/mmove.1
man/man1/mpartition.1
man/man1/mrd.1
man/man1/mren.1
man/man1/mshortname.1
man/man1/mshowfat.1
man/man1/mtools.1
man/man1/mtoolstest.1
man/man1/mtype.1
man/man1/mzip.1
man/man5/mtools.5

9
sysutils/mtools/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.21 2013/01/18 00:34:30 mef Exp $
SHA1 (mtools-4.0.18.tar.bz2) = cd45031441ac944eacebdc8d4b82b20cd9cc8461
RMD160 (mtools-4.0.18.tar.bz2) = 31bd7af355f609e072daa173d44771eac85e9473
Size (mtools-4.0.18.tar.bz2) = 420190 bytes
SHA1 (patch-aa) = 493b06455ee3169e6db916a9d535dad5a124edbc
SHA1 (patch-ae) = 0142fa2fccfc81da0daab2a3caee2dbcb107f895
SHA1 (patch-af) = fcf66c887f9513d812c01ff314669959f94ed7b3
SHA1 (patch-mainloop.c) = 3754c5be44f2fb9671bc14dc3cad59b520c04976

View File

@@ -0,0 +1,19 @@
# $NetBSD: options.mk,v 1.2 2012/03/18 12:41:53 shattered Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mtools
PKG_SUPPORTED_OPTIONS= floppyd
PKG_OPTIONS_LEGACY_VARS+= MTOOLS_ENABLE_FLOPPYD:floppyd
.include "../../mk/bsd.options.mk"
PLIST_VARS+= floppyd
.if !empty(PKG_OPTIONS:Mfloppyd)
BUILDLINK_DEPMETHOD.libXt?= build
. include "../../x11/libX11/buildlink3.mk"
. include "../../x11/libXt/buildlink3.mk"
CPPFLAGS+= -I${X11BASE}/include
CONFIGURE_ARGS+= --enable-floppyd
PLIST.floppyd= yes
.else
CONFIGURE_ARGS+= --disable-floppyd
.endif

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-aa,v 1.12 2011/03/09 20:25:08 asau Exp $
--- Makefile.in.orig 2010-10-17 02:23:20.000000000 +0400
+++ Makefile.in 2011-03-09 23:09:25.000000000 +0300
@@ -26,7 +26,6 @@
USERLDFLAGS =
USERLDLIBS =
-MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
TEXI2PDF = texi2pdf
TEXI2HTML = texi2html
@@ -65,6 +64,7 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = ${BSD_INSTALL_SCRIPT}
INSTALL_DATA = @INSTALL_DATA@
INSTALL_INFO = @INSTALL_INFO@
@@ -277,7 +277,7 @@
install-scripts: $(DESTDIR)$(bindir)/mtools
@$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
@for j in $(SCRIPTS) ; do \
- $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \
+ $(INSTALL_SCRIPT) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \
echo $(DESTDIR)$(bindir)/$$j ; \
done
rm -f $(DESTDIR)$(bindir)/lz

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ae,v 1.4 2013/01/18 00:34:30 mef Exp $
See
http://gnats.netbsd.org/18771
mtools drops its privileges so thoroughly that it can't regain its
original effective group id for opening the device file. This
defeats the "setgid mtools" setup that is mentioned in the
documentation and described in the comment above Setuid() in
privileges.c.
--- privileges.c.orig 2003-12-11 18:07:44.000000000 +0000
+++ privileges.c
@@ -68,7 +68,7 @@ void reclaim_privs(void)
{
if(noPrivileges)
return;
- setgid(egid);
+ setegid(egid);
Setuid(euid);
print_privs("after reclaim privs, both uids should be 0 ");
}
@@ -76,7 +76,7 @@ void reclaim_privs(void)
void drop_privs(void)
{
Setuid(ruid);
- setgid(rgid);
+ setegid(rgid);
print_privs("after drop_privs, real should be 0, effective should not ");
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-af,v 1.4 2010/05/03 10:17:05 is Exp $
--- charsetConv.c.orig 2008-11-18 21:33:11.000000000 +0000
+++ charsetConv.c
@@ -265,7 +265,7 @@ static void initialize_to_native(void)
*/
int wchar_to_native(const wchar_t *wchar, char *native, size_t len)
{
-#ifdef HAVE_ICONV_H
+#if defined(HAVE_ICONV_H) && defined(__linux__)
int mangled;
int r;
initialize_to_native();

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-mainloop.c,v 1.2 2013/01/18 00:34:30 mef Exp $
Fix unused attribute usage.
--- mainloop.c.orig 2013-01-15 16:21:14.000000000 +0000
+++ mainloop.c
@@ -86,7 +86,7 @@ static const char *fix_mcwd(char *ans)
}
int unix_dir_loop(Stream_t *Stream, MainParam_t *mp);
-int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp, char *arg,
+int unix_loop(Stream_t *Stream UNUSEDP, MainParam_t *mp, char *arg,
int follow_dir_link);
static int _unix_loop(Stream_t *Dir, MainParam_t *mp,
@@ -95,7 +95,7 @@ static int _unix_loop(Stream_t *Dir, Mai
return unix_dir_loop(Dir, mp);
}
-int unix_loop(UNUSED(Stream_t *Stream), MainParam_t *mp,
+int unix_loop(Stream_t *Stream, MainParam_t *mp,
char *arg, int follow_dir_link)
{
int ret;