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

3
sysutils/gpart/DESCR Normal file
View File

@@ -0,0 +1,3 @@
Gpart is a small tool which tries to guess what partitions
are on a PC type harddisk in case the primary partition table
was damaged.

18
sysutils/gpart/Makefile Normal file
View File

@@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.15 2012/10/23 19:51:05 asau Exp $
DISTNAME= gpart-0.1h
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.stud.uni-hannover.de/user/76201/gpart/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.brzitwa.de/mb/gpart/index.html
COMMENT= Tool to show the partitions on a PC type harddisk
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
# Doesn't work on 1.4.x due to problems with dlopen
NOT_FOR_PLATFORM= NetBSD-1.4*-*
.include "../../mk/bsd.pkg.mk"

3
sysutils/gpart/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:53:16 zuntum Exp $
bin/gpart
man/man8/gpart.8

11
sysutils/gpart/distinfo Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.9 2013/01/11 13:31:05 joerg Exp $
SHA1 (gpart-0.1h.tar.gz) = 23f66162e1d85977ea43bfe6b5e5bff0ad2d566e
RMD160 (gpart-0.1h.tar.gz) = 1cdfb1779801ee8755b05975ced24441a3a2b639
Size (gpart-0.1h.tar.gz) = 52352 bytes
SHA1 (patch-aa) = f971cc7ae0efbacd64e8f5e6bf9c2496f75320a3
SHA1 (patch-ab) = 557f146fcd40f2fa501eb2cff006966efa95b087
SHA1 (patch-ac) = 15a57dd0e9b57c7a64869b43df37a5b2493e77d2
SHA1 (patch-ad) = e53ca24886c072d514802e7dca7a79da2e1916d0
SHA1 (patch-ae) = d02258c0a702156a6be9370f4b60c59a1109afeb
SHA1 (patch-af) = a201375f69b1581259a2bc287d7ce5ab7c7dafe4

View File

@@ -0,0 +1,39 @@
$NetBSD: patch-aa,v 1.3 2008/12/26 20:23:45 hasso Exp $
--- src/disku.c.orig 2001-02-07 21:04:07 +0200
+++ src/disku.c 2008-12-25 21:25:33 +0200
@@ -26,12 +26,14 @@
#include <linux/hdreg.h>
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <errno.h>
#include <sys/disklabel.h>
#endif
-
+#ifdef __DragonFly__
+#include <sys/disklabel32.h>
+#endif
/*
* get disk geometry. The medium is opened for reading,
@@ -60,10 +62,16 @@ struct disk_geom *disk_geometry(disk_des
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#ifdef __DragonFly__
+ struct disklabel32 dl;
+ if (ioctl(d->d_fd,DIOCGDINFO32,&dl) == -1)
+ pr(FATAL,EM_IOCTLFAILED,"DIOCGDINFO32",strerror(errno));
+#else
struct disklabel dl;
if (ioctl(d->d_fd,DIOCGDINFO,&dl) == -1)
pr(FATAL,EM_IOCTLFAILED,"DIOCGDINFO",strerror(errno));
+#endif
g.d_c = dl.d_ncylinders;
g.d_h = dl.d_ntracks;
g.d_s = dl.d_nsectors;

View File

@@ -0,0 +1,79 @@
$NetBSD: patch-ab,v 1.5 2013/01/11 13:31:06 joerg Exp $
--- src/gpart.c.orig 2001-02-07 18:08:08.000000000 +0000
+++ src/gpart.c
@@ -69,7 +69,7 @@ int f_skiperrors = 1, berrno = 0;
int (*boundary_fun)(disk_desc *,s64_t);
unsigned long increment = 'h', gc = 0, gh = 0, gs = 0;
s64_t skipsec = 0, maxsec = 0;
-FILE *log = 0;
+FILE *logfile = 0;
@@ -125,26 +125,26 @@ void pr(int type,char *fmt,...)
case FATAL :
g_mod_deleteall();
if (! f_quiet) fprintf(stderr,EM_FATALERROR,msg);
- if (log)
+ if (logfile)
{
- fprintf(log,EM_FATALERROR,msg);
- fclose(log);
+ fprintf(logfile,EM_FATALERROR,msg);
+ fclose(logfile);
}
exit(1);
case ERROR :
if (! f_quiet) fprintf(stderr,EM_SIMPLEERROR,msg);
- if (log) fprintf(log,EM_SIMPLEERROR,msg);
+ if (logfile) fprintf(logfile,EM_SIMPLEERROR,msg);
break;
case WARN :
if (! f_quiet) fprintf(stderr,EM_WARNING,msg);
- if (log) fprintf(log,EM_WARNING,msg);
+ if (logfile) fprintf(logfile,EM_WARNING,msg);
break;
case MSG :
if (! f_quiet) fputs(msg,stdout); fflush(stdout);
- if (log) fputs(msg,log);
+ if (logfile) fputs(msg,logfile);
break;
}
- if (log) fflush(log);
+ if (logfile) fflush(logfile);
}
@@ -300,9 +300,10 @@ static char *get_part_type(int type)
{ 0x8E, "Linux LVM physical volume" },
{ 0x93, "Amoeba filesystem" },
{ 0x94, "Amoeba bad block table" },
- { 0xA5, "FreeBSD/NetBSD/386BSD" },
+ { 0xA5, "FreeBSD/DragonFly/386BSD or old NetBSD" },
{ 0xA6, "OpenBSD" },
{ 0xA7, "NEXTSTEP" },
+ { 0xA9, "NetBSD" },
{ 0xB7, "BSDI BSD/386 filesystem" },
{ 0xB8, "BSDI BSD/386 swap" },
{ 0xC7, "Syrinx" },
@@ -1750,8 +1751,8 @@ int main(int ac,char **av)
}
break;
case 'l' :
- if (log) fclose(log);
- if ((log = fopen(optarg,"w")) == 0)
+ if (logfile) fclose(logfile);
+ if ((logfile = fopen(optarg,"w")) == 0)
pr(FATAL,EM_OPENLOG,optarg);
break;
case 'L' :
@@ -1831,7 +1832,7 @@ int main(int ac,char **av)
}
}
free_disk_desc(d);
- if (log) fclose(log);
+ if (logfile) fclose(logfile);
return (f_check ? no_of_incons : 0);
}

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.2 2006/03/24 12:35:19 joerg Exp $
--- src/l64seek.c Sun May 14 14:04:23 2000
+++ src/l64seek.c Sun Jul 16 10:58:50 2000
@@ -46,7 +46,8 @@
ret = (off64_t)-1;
#endif
-#if defined(__FreeBSD__) || (defined(__linux__) && defined(__alpha__))
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \
+ (defined(__linux__) && defined(__alpha__))
ret = lseek(fd,offset,whence);
#endif

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.2 2006/03/24 12:35:19 joerg Exp $
--- src/l64seek.h Sun May 14 14:04:23 2000
+++ src/l64seek.h Sun Jul 16 10:59:15 2000
@@ -33,7 +33,7 @@
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
typedef off_t off64_t;
#endif

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ae,v 1.2 2010/02/04 21:14:03 heinz Exp $
--- inst.defs.orig 2000-12-13 22:45:49.000000000 +0000
+++ inst.defs
@@ -1,9 +1,9 @@
#
# installation directories for gpart
#
-prefix=/usr/local
+prefix=$(DESTDIR)$(PREFIX)
bindir=$(prefix)/bin
libdir=$(prefix)/lib
-mandir=$(prefix)/man
+mandir=$(prefix)/$(PKGMANDIR)
manext=8
sharedir=$(prefix)/share

View File

@@ -0,0 +1,28 @@
$NetBSD: patch-af,v 1.1 2010/01/08 17:02:42 joerg Exp $
--- src/gm_ntfs.h.orig 2010-01-08 16:59:01.000000000 +0000
+++ src/gm_ntfs.h
@@ -29,18 +29,11 @@
/* 'NTFS' in little endian */
#define NTFS_SUPER_MAGIC 0x5346544E
-#if defined(i386) || defined(__i386__) || defined(__alpha__)
-
-/* unsigned integral types */
-#ifndef NTFS_INTEGRAL_TYPES
-#define NTFS_INTEGRAL_TYPES
-typedef unsigned char ntfs_u8;
-typedef unsigned short ntfs_u16;
-typedef unsigned int ntfs_u32;
-typedef s64_t ntfs_u64;
-#endif /* NTFS_INTEGRAL_TYPES */
-#endif /* defined(i386) || defined(__i386__) || defined(__alpha__) */
-
+#include <inttypes.h>
+typedef uint8_t ntfs_u8;
+typedef uint16_t ntfs_u16;
+typedef uint32_t ntfs_u32;
+typedef int64_t ntfs_u64;
/* Macros reading unsigned integers from a byte pointer */
/* these should work for all little endian machines */