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

6
sysutils/gentoo/DESCR Normal file
View File

@@ -0,0 +1,6 @@
gentoo is a modern, powerful, flexible, and utterly configurable file
manager for UNIX systems, written using the GTK+ toolkit. It aims to
be 100% graphically configurable; there's no need to edit config files
by hand and then restart the application. gentoo is somewhat
inspired in its look & feel by the classic Amiga program
DirectoryOpus.

23
sysutils/gentoo/Makefile Normal file
View File

@@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.34 2012/10/23 19:51:03 asau Exp $
DISTNAME= gentoo-0.11.57
PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gentoo/}
MAINTAINER= dunse@goa.nu
HOMEPAGE= http://www.obsession.se/gentoo/
COMMENT= Two-pane filemanager using GTK+, 100% GUI configurable
USE_PKGLOCALEDIR= yes
USE_TOOLS+= msgfmt
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples/gentoo
CONF_FILES= ${EGDIR}/gentoorc ${PKG_SYSCONFDIR}/gentoorc
CONF_FILES+= ${EGDIR}/gentoogtkrc ${PKG_SYSCONFDIR}/gentoogtkrc
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

140
sysutils/gentoo/PLIST Normal file
View File

@@ -0,0 +1,140 @@
@comment $NetBSD: PLIST,v 1.12 2009/06/14 18:16:05 joerg Exp $
bin/gentoo
share/examples/gentoo/gentoogtkrc
share/examples/gentoo/gentoorc
share/gentoo/icons/AbiWord.xpm
share/gentoo/icons/Amiga.xpm
share/gentoo/icons/Animation.xpm
share/gentoo/icons/Apple.xpm
share/gentoo/icons/BSD.xpm
share/gentoo/icons/Bad.xpm
share/gentoo/icons/Battery.xpm
share/gentoo/icons/CDROM.xpm
share/gentoo/icons/Card.xpm
share/gentoo/icons/Database.xpm
share/gentoo/icons/Directory.xpm
share/gentoo/icons/Directory2.xpm
share/gentoo/icons/Document.xpm
share/gentoo/icons/EggTimer.xpm
share/gentoo/icons/ExcelCalcXLS.xpm
share/gentoo/icons/Executable.xpm
share/gentoo/icons/FIFO.xpm
share/gentoo/icons/Floppy.xpm
share/gentoo/icons/Font.xpm
share/gentoo/icons/GNUstep.xpm
share/gentoo/icons/Ghost.xpm
share/gentoo/icons/GnomeCalc.xpm
share/gentoo/icons/GnomeWord.xpm
share/gentoo/icons/Harddrive.xpm
share/gentoo/icons/Image.xpm
share/gentoo/icons/Internet.xpm
share/gentoo/icons/KDECalc.xpm
share/gentoo/icons/KDEWord.xpm
share/gentoo/icons/Kernel.xpm
share/gentoo/icons/Keymap.xpm
share/gentoo/icons/Lego.xpm
share/gentoo/icons/License.xpm
share/gentoo/icons/Linux.xpm
share/gentoo/icons/MSWordDoc.xpm
share/gentoo/icons/Makefile.xpm
share/gentoo/icons/Maya.xpm
share/gentoo/icons/Mixer.xpm
share/gentoo/icons/Mouse.xpm
share/gentoo/icons/Mouse2.xpm
share/gentoo/icons/NetAmiga.xpm
share/gentoo/icons/NetApple.xpm
share/gentoo/icons/NetHD.xpm
share/gentoo/icons/NetSGI.xpm
share/gentoo/icons/NetSun.xpm
share/gentoo/icons/NetWindows.xpm
share/gentoo/icons/Package.xpm
share/gentoo/icons/Package2.xpm
share/gentoo/icons/Port.xpm
share/gentoo/icons/Port2.xpm
share/gentoo/icons/PowerButton.xpm
share/gentoo/icons/Printer.xpm
share/gentoo/icons/Readme.xpm
share/gentoo/icons/SCSI.xpm
share/gentoo/icons/SoundCard.xpm
share/gentoo/icons/Source.xpm
share/gentoo/icons/Speaker.xpm
share/gentoo/icons/Speaker2.xpm
share/gentoo/icons/Spreadsheet.xpm
share/gentoo/icons/Tape.xpm
share/gentoo/icons/VRML.xpm
share/gentoo/icons/Windows.xpm
share/gentoo/icons/aiff.xpm
share/gentoo/icons/au.xpm
share/gentoo/icons/avi.xpm
share/gentoo/icons/bmp.xpm
share/gentoo/icons/bmp2.xpm
share/gentoo/icons/c.xpm
share/gentoo/icons/class.xpm
share/gentoo/icons/conf.xpm
share/gentoo/icons/core.xpm
share/gentoo/icons/cpp.xpm
share/gentoo/icons/deb.xpm
share/gentoo/icons/eps.xpm
share/gentoo/icons/exe.xpm
share/gentoo/icons/gentoo.png
share/gentoo/icons/gif.xpm
share/gentoo/icons/gif2.xpm
share/gentoo/icons/h.xpm
share/gentoo/icons/html.xpm
share/gentoo/icons/html2.xpm
share/gentoo/icons/iff.xpm
share/gentoo/icons/iff2.xpm
share/gentoo/icons/java.xpm
share/gentoo/icons/jpeg.xpm
share/gentoo/icons/jpeg2.xpm
share/gentoo/icons/log.xpm
share/gentoo/icons/m.xpm
share/gentoo/icons/man.xpm
share/gentoo/icons/midi.xpm
share/gentoo/icons/mod.xpm
share/gentoo/icons/mov.xpm
share/gentoo/icons/mov2.xpm
share/gentoo/icons/mp3.xpm
share/gentoo/icons/mpeg.xpm
share/gentoo/icons/o.xpm
share/gentoo/icons/pcx.xpm
share/gentoo/icons/pcx2.xpm
share/gentoo/icons/pdb.xpm
share/gentoo/icons/pdf.xpm
share/gentoo/icons/pl.xpm
share/gentoo/icons/png.xpm
share/gentoo/icons/png2.xpm
share/gentoo/icons/prc.xpm
share/gentoo/icons/ps.xpm
share/gentoo/icons/r.xpm
share/gentoo/icons/ra.xpm
share/gentoo/icons/rom.xpm
share/gentoo/icons/rpm.xpm
share/gentoo/icons/sh.xpm
share/gentoo/icons/sid.xpm
share/gentoo/icons/so.xpm
share/gentoo/icons/targa.xpm
share/gentoo/icons/targa2.xpm
share/gentoo/icons/tex.xpm
share/gentoo/icons/tiff.xpm
share/gentoo/icons/tiff2.xpm
share/gentoo/icons/txt.xpm
share/gentoo/icons/wav.xpm
share/gentoo/icons/xbm.xpm
share/gentoo/icons/xbm2.xpm
share/gentoo/icons/xcf.xpm
share/gentoo/icons/xpm.xpm
share/gentoo/icons/xpm2.xpm
share/locale/de/LC_MESSAGES/gentoo.mo
share/locale/es_MX/LC_MESSAGES/gentoo.mo
share/locale/fr/LC_MESSAGES/gentoo.mo
share/locale/it/LC_MESSAGES/gentoo.mo
share/locale/ja_JP.UTF-8/LC_MESSAGES/gentoo.mo
share/locale/pl/LC_MESSAGES/gentoo.mo
share/locale/ru_RU.CP1251/LC_MESSAGES/gentoo.mo
share/locale/ru_RU.KOI8-R/LC_MESSAGES/gentoo.mo
share/locale/ru_RU.UTF-8/LC_MESSAGES/gentoo.mo
share/locale/ru_RU.cp1251/LC_MESSAGES/gentoo.mo
share/locale/ru_RU.koi8r/LC_MESSAGES/gentoo.mo
share/locale/ru_RU.utf8/LC_MESSAGES/gentoo.mo
share/locale/sv/LC_MESSAGES/gentoo.mo

13
sysutils/gentoo/distinfo Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.27 2009/05/17 22:04:11 dholland Exp $
SHA1 (gentoo-0.11.57.tar.gz) = ac5859b489a6b88161d5b0f2ddd06490ce9915eb
RMD160 (gentoo-0.11.57.tar.gz) = 675333aa740f297a0d41d5795689b8e4280d2bdf
Size (gentoo-0.11.57.tar.gz) = 1479376 bytes
SHA1 (patch-aa) = 5d8f1fcd4110b09e02f44584e2ccd921a7175929
SHA1 (patch-ab) = e84931dbc57434881f8071e389ebe8df061ee0b6
SHA1 (patch-ac) = 4e5d52849887b816eb4388fb2c75aefb3443f5c8
SHA1 (patch-ad) = 7e41b435aff7af5e57bfb82902a6bb88af37ad97
SHA1 (patch-ae) = 92a0efdb319b33db09f96d8d2a4729f9fdf2c9af
SHA1 (patch-af) = 2b80f24bd545177b0d089696e7b3ed7f0d72a3b0
SHA1 (patch-ag) = 3045a4eb72f8c50d147fe09256ec791359053418
SHA1 (patch-ah) = c14c80a7c821f69b98cb23156ec5b30ac40ed2ec

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.8 2008/11/10 14:56:16 adam Exp $
--- Makefile.in.orig 2008-07-13 20:10:09.000000000 +0200
+++ Makefile.in
@@ -237,7 +237,7 @@ psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
-sysconfdir = @sysconfdir@
+sysconfdir = ${datadir}/examples/@PACKAGE@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.6 2008/11/10 14:56:16 adam Exp $
--- configure.orig 2008-07-13 20:10:10.000000000 +0200
+++ configure
@@ -3416,7 +3416,7 @@ _ACEOF
GENTOO_CFLAGS="$GENTOO_CFLAGS -g -pg"
else
- GENTOO_CFLAGS="$GENTOO_CFLAGS -O2"
+ GENTOO_CFLAGS="$GENTOO_CFLAGS $CFLAGS"
fi

View File

@@ -0,0 +1,95 @@
$NetBSD: patch-ac,v 1.4 2006/06/20 20:41:22 joerg Exp $
--- src/mntent_wrap.c.orig 2003-10-12 13:45:23.000000000 +0000
+++ src/mntent_wrap.c
@@ -92,7 +92,7 @@ gint mne_endmntent(FILE *filep)
return -1;
}
-#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ || (defined __osf__ && defined __alpha__)
+#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ || (defined __osf__ && defined __alpha__) || defined(__DragonFly__)
/* Here is the implementation for BSD and Alpha Tru64 systems. */
@@ -100,6 +100,9 @@ gint mne_endmntent(FILE *filep)
#include <sys/mount.h>
#include <sys/param.h>
#include <sys/ucred.h>
+#if defined(HAVE_STRUCT_STATVFS) && !defined(__DragonFly__)
+#include <sys/statvfs.h>
+#endif
/* A pointer to one of these is returned by mne_setmntent(), depending on which file
** name is given as an input. Note that on BSD systems, the system calls themselves
@@ -109,13 +112,18 @@ gint mne_endmntent(FILE *filep)
** of what kind of mount entries we're supposed to deal with. Since gentoo will
** pass a FILE pointer to mne_getmntent() anyway, it seems natural to use it.
*/
-static FILE f_fstab, f_mtab;
+static int f_stab_val, f_mtab_val;
+static FILE *f_fstab = (FILE *)&f_stab_val, *f_mtab = (FILE *)&f_mtab_val;
/* These are used when we're accessing the currently mounted filesystems, using
** a call to getmntinfo(). The mtab_pos and mtab_num integers are then used to
** keep track of where in the returned array of statfs structs we are.
*/
+#if defined(HAVE_STRUCT_STATVFS) && !defined(__DragonFly__)
+static struct statvfs *mtab = NULL;
+#else
static struct statfs *mtab = NULL;
+#endif
static guint mtab_pos = 0, mtab_num = 0;
/* 1999-05-09 - An attempt at a BSD implementation, after having received input from
@@ -132,28 +140,28 @@ FILE * mne_setmntent(const gchar *filena
if(strcmp(filename, "/etc/fstab") == 0) /* Looking for available filesystems? */
{
if(setfsent() == 1)
- return &f_fstab;
+ return f_fstab;
}
else if(strcmp(filename, "/proc/mtab") == 0) /* Looking for mounted filesystems? */
{
if((mtab_num = getmntinfo(&mtab, 0)) > 0)
{
mtab_pos = 0;
- return &f_mtab;
+ return f_mtab;
}
}
return NULL;
}
-/* 1999-05-09 - Get another entry of data, either about mounted (filep == &f_mtab) or available
-** (filep == &f_fstab) filesystems. Returns NULL when the respective data source
+/* 1999-05-09 - Get another entry of data, either about mounted (filep == f_mtab) or available
+** (filep == f_fstab) filesystems. Returns NULL when the respective data source
** is exhausted.
*/
const MntEnt * mne_getmntent(FILE *filep)
{
static MntEnt me;
- if(filep == &f_fstab)
+ if(filep == f_fstab)
{
struct fstab *ment;
@@ -164,7 +172,7 @@ const MntEnt * mne_getmntent(FILE *filep
return &me;
}
}
- else if(filep == &f_mtab)
+ else if(filep == f_mtab)
{
if(mtab_pos == mtab_num) /* Array exhausted? */
return NULL;
@@ -182,7 +190,7 @@ const MntEnt * mne_getmntent(FILE *filep
/* 1999-05-09 - Stop traversing mount/fs data. */
gint mne_endmntent(FILE *filep)
{
- if(filep == &f_fstab)
+ if(filep == f_fstab)
endfsent();
return 0;

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-ad,v 1.8 2008/11/10 14:56:16 adam Exp $
--- src/gentoo.c.orig 2006-08-23 14:58:12.000000000 -0400
+++ src/gentoo.c 2008-08-17 01:44:41.000000000 -0400
@@ -334,7 +334,18 @@ static GtkWidget * build_gui(MainInfo *m
static void init_paths(CfgInfo *cfg)
{
cfg->path.path[PTID_ICON] = g_string_new(PATH_ICN);
+#if 0
+ /* PATH_GRC is the compile-time $HOME, which seems wrong. */
cfg->path.path[PTID_GTKRC] = g_string_new(PATH_GRC);
+#else
+ {
+ const char *home = getenv("HOME");
+ if (home == NULL) {
+ home = "/";
+ }
+ cfg->path.path[PTID_GTKRC] = g_string_new(home);
+ }
+#endif
cfg->path.path[PTID_FSTAB] = g_string_new("/etc/fstab");
cfg->path.path[PTID_MTAB] = g_string_new("/proc/mounts");

View File

@@ -0,0 +1,116 @@
$NetBSD: patch-ae,v 1.7 2009/05/17 22:04:11 dholland Exp $
Fix insecure-temp-files. Replaces older nonworking patch with similar
intent. XXX inadequately tested, lack of time.
Upstream: sent upstream by obache@: http://sourceforge.net/tracker/?func=detail&atid=406763&aid=2537314&group_id=32880
--- src/types.c.orig 2008-07-09 15:51:26.000000000 -0400
+++ src/types.c 2009-05-17 17:55:28.000000000 -0400
@@ -28,6 +28,12 @@
#include <sys/wait.h>
#include <unistd.h>
+#ifdef __sun /* paths.h missing in solaris */
+#define _PATH_TMP "/tmp/"
+#else
+#include <paths.h>
+#endif
+
#include <stddef.h>
#include "strutil.h"
@@ -345,14 +351,18 @@ static FType * match_file(GList *list, D
void typ_identify_end(MainInfo *min, const gchar *path)
{
const GList *here;
- gchar buf[MAXNAMLEN + 2], *temp_name;
+ gchar buf[MAXNAMLEN + 2];
gint fd[2], len, status;
pid_t file_pid;
FType *type;
+ char tempnamebuf[64];
+ int tempfd;
if(file_list == NULL)
return;
- if((temp_name = tmpnam(NULL)) == NULL)
+ strcpy(tempnamebuf, _PATH_TMP "gentoo.XXXXXX");
+ tempfd = mkstemp(tempnamebuf);
+ if (tempfd < 0)
return;
if(pipe(fd) != 0)
return;
@@ -360,20 +370,16 @@ void typ_identify_end(MainInfo *min, con
file_pid = fork();
if(file_pid == 0)
{
- guint bits = 0U;
-
- if(close(STDIN_FILENO) == 0)
- {
- if(dup(fd[STDIN_FILENO]) == STDIN_FILENO)
- bits |= (close(fd[STDIN_FILENO]) == 0);
- }
- if(close(STDOUT_FILENO) == 0)
- {
- if(open(temp_name, O_CREAT | O_RDWR, S_IRWXU) == STDOUT_FILENO)
- bits |= (close(fd[STDOUT_FILENO]) == 0) << 1;
- }
- if(bits == 3U && chdir(path) == 0)
- execlp("file", "file", "-f", "-", NULL);
+ if (dup2(fd[0], STDIN_FILENO) < 0)
+ _exit(EXIT_FAILURE);
+ if (dup2(tempfd, STDOUT_FILENO) < 0)
+ _exit(EXIT_FAILURE);
+ close(fd[0]);
+ close(fd[1]);
+ close(tempfd);
+ if (chdir(path) < 0)
+ _exit(EXIT_FAILURE);
+ execlp("file", "file", "-f", "-", NULL);
_exit(EXIT_FAILURE);
}
else if(file_pid < 0)
@@ -382,21 +388,21 @@ void typ_identify_end(MainInfo *min, con
return;
}
/* We don't need the input part of the pipe, so close it. */
- close(fd[STDIN_FILENO]);
+ close(fd[0]);
/* Now, we have file listening on pipe, so write all filenames to it. */
for(here = file_list; here != NULL; here = g_list_next(here))
{
len = g_snprintf(buf, sizeof buf, "%s\n", DP_SEL_NAME(here));
- write(fd[STDOUT_FILENO], buf, len);
+ write(fd[1], buf, len);
}
- close(fd[STDOUT_FILENO]);
+ close(fd[1]);
waitpid(file_pid, &status, 0);
if(WIFEXITED(status))
{
FILE *in;
- if((in = fopen(temp_name, "rt")) != NULL)
+ if((in = fdopen(tempfd, "rt")) != NULL)
{
const gchar *fout;
gchar line[MAXNAMLEN + 256];
@@ -412,10 +418,14 @@ void typ_identify_end(MainInfo *min, con
}
fclose(in);
}
+ else
+ close(tempfd);
}
+ else
+ close(tempfd);
g_list_free(file_list);
file_list = NULL;
- remove(temp_name);
+ remove(tempnamebuf);
}
/* ----------------------------------------------------------------------------------------- */

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-af,v 1.3 2008/11/10 14:56:16 adam Exp $
--- src/gentoo.h.orig 2008-07-07 20:09:22.000000000 +0200
+++ src/gentoo.h
@@ -13,7 +13,7 @@
#include "config.h"
-#if !(defined __osf__ && defined __alpha__) && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __sgi
+#if !(defined __osf__ && defined __alpha__) && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __sgi && !defined(__DragonFly__)
#if !defined __EXTENSIONS__
#define __EXTENSIONS__
#endif
@@ -46,7 +46,7 @@
#include <time.h>
#include <unistd.h>
-#if defined HAVE_STRUCT_STATVFS
+#if defined HAVE_STRUCT_STATVFS && !defined(__DragonFly__)
#include <sys/statvfs.h>
#elif defined HAVE_STRUCT_STATFS
#include <sys/statfs.h>
@@ -56,7 +56,7 @@
** and save some typing in various tests below. This should probably all
** be replaced by proper Autoconfed stuff at some point.
*/
-#if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__
+#if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ || defined(__DragonFly__)
#define GENTOO_ON_BSD
#endif
@@ -464,7 +464,7 @@ typedef struct {
typedef struct { /* Some trivial file system information. Updated on rescan. */
gboolean valid; /* Set if the structure's contents are valid. */
-#if defined HAVE_STRUCT_STATVFS
+#if defined HAVE_STRUCT_STATVFS && !defined(__DragonFly__)
struct statvfs stat; /* Holds information about filesystem. */
#elif defined HAVE_STRUCT_STATFS || defined GENTOO_ON_BSD
struct statfs stat;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ag,v 1.1 2006/06/20 20:41:22 joerg Exp $
--- src/cfg_paths.c.orig 2006-06-19 13:33:18.000000000 +0000
+++ src/cfg_paths.c
@@ -153,7 +153,7 @@ static GtkWidget * cpt_init(MainInfo *mi
page->path[i].path = gtk_entry_new();
gtk_signal_connect(GTK_OBJECT(page->path[i].path), "changed", GTK_SIGNAL_FUNC(evt_path_changed), page);
gtk_table_attach_defaults(GTK_TABLE(page->ptable), page->path[i].path, 1, 2, i, i+1);
-#if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__
+#if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ || defined __DragonFly__
/* Mountlist and mounted fs files are non-configurable on BSD systems. */
if(i == 2 || i == 3)
gtk_widget_set_sensitive(page->path[i].path, FALSE);

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ah,v 1.2 2008/11/10 14:56:16 adam Exp $
--- src/dirpane.c.orig 2008-07-07 20:09:22.000000000 +0200
+++ src/dirpane.c
@@ -1393,7 +1393,7 @@ static void update_fs_info(DirPane *dp)
{
gint old_errno = errno;
-#if defined HAVE_STRUCT_STATVFS
+#if defined HAVE_STRUCT_STATVFS && !defined(__DragonFly__)
dp->dir.fs.valid = statvfs(dp->dir.path, &dp->dir.fs.stat) == 0;
#else
dp->dir.fs.valid = statfs(dp->dir.path, &dp->dir.fs.stat) == 0;