diff options
author | Javier Villavicencio <the_paya@gentoo.org> | 2009-01-22 21:04:49 +0000 |
---|---|---|
committer | Javier Villavicencio <the_paya@gentoo.org> | 2009-01-22 21:04:49 +0000 |
commit | 599f2a3b25cb60da7a1c999333eef958f7077918 (patch) | |
tree | bc79f9c04c59ce154d77250b9cc4ce38847b3ff4 /sys-freebsd/freebsd-sbin/files | |
parent | Import of the 7.1 ebuilds from gentoo-bsd overlay. (diff) | |
download | gentoo-2-599f2a3b25cb60da7a1c999333eef958f7077918.tar.gz gentoo-2-599f2a3b25cb60da7a1c999333eef958f7077918.tar.bz2 gentoo-2-599f2a3b25cb60da7a1c999333eef958f7077918.zip |
Import of the 7.1 ebuilds from gentoo-bsd overlay.
(Portage version: 2.2_rc23/cvs/FreeBSD i386)
Diffstat (limited to 'sys-freebsd/freebsd-sbin/files')
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/freebsd-sbin-7.1-zlib.patch | 21 | ||||
-rwxr-xr-x | sys-freebsd/freebsd-sbin/files/idmapd.initd | 20 |
2 files changed, 41 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-sbin/files/freebsd-sbin-7.1-zlib.patch b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-7.1-zlib.patch new file mode 100644 index 000000000000..22fb2ec62d4f --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-7.1-zlib.patch @@ -0,0 +1,21 @@ +diff -ur sbin/savecore/savecore.c sbin-zlib/savecore/savecore.c +--- sbin/savecore/savecore.c 2005-02-26 01:21:50 +0000 ++++ sbin-zlib/savecore/savecore.c 2005-05-06 12:00:06 +0000 +@@ -95,7 +95,7 @@ + static int checkfor, compress, clear, force, keep, verbose; /* flags */ + static int nfound, nsaved, nerr; /* statistics */ + +-extern FILE *zopen(const char *, const char *); ++extern FILE *gzopen(const char *, const char *); + + static void + printheader(FILE *f, const struct kerneldumpheader *h, const char *device, +@@ -553,7 +553,7 @@ + if (compress) { + sprintf(filename, "%s.%d.gz", istextdump ? "textdump.tar" : + "vmcore", bounds); +- fp = zopen(filename, "w"); ++ fp = gzopen(filename, "w"); + } else { + sprintf(filename, "%s.%d", istextdump ? "textdump.tar" : + "vmcore", bounds); diff --git a/sys-freebsd/freebsd-sbin/files/idmapd.initd b/sys-freebsd/freebsd-sbin/files/idmapd.initd new file mode 100755 index 000000000000..407b0e87f85d --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/idmapd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need rpcbind +} + +start() { + ebegin "Starting NFS idmapd" + start-stop-daemon --start --quiet --exec \ + /sbin/idmapd -- $idmapdopts + eend $? "Error starting NFS idmapd" +} + +stop() { + ebegin "Stopping NFS idmapd" + start-stop-daemon --stop --quiet --exec /sbin/idmapd + eend $? "Error stopping NFS idmapd" +} |