[Glibc-bsd-commits] r5514 - in trunk/freebsd-utils/debian: . patches
christoph at alioth.debian.org
christoph at alioth.debian.org
Mon Sep 1 02:12:58 UTC 2014
Author: christoph
Date: 2014-09-01 02:12:58 +0000 (Mon, 01 Sep 2014)
New Revision: 5514
Modified:
trunk/freebsd-utils/debian/changelog
trunk/freebsd-utils/debian/patches/002_ifconfig.diff
trunk/freebsd-utils/debian/patches/014_route.diff
trunk/freebsd-utils/debian/patches/021_netstat.diff
trunk/freebsd-utils/debian/patches/022_devd.diff
trunk/freebsd-utils/debian/patches/026_kdump.diff
trunk/freebsd-utils/debian/patches/035_nfs.diff
trunk/freebsd-utils/debian/patches/devd_link_c++_statically.diff
trunk/freebsd-utils/debian/patches/makefiles.diff
trunk/freebsd-utils/debian/patches/netstat_numeric_default.diff
trunk/freebsd-utils/debian/patches/pf_regex_c.diff
trunk/freebsd-utils/debian/patches/ppp_macros.diff
trunk/freebsd-utils/debian/patches/route_list.diff
trunk/freebsd-utils/debian/rules
Log:
Start working on 10.1
Modified: trunk/freebsd-utils/debian/changelog
===================================================================
--- trunk/freebsd-utils/debian/changelog 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/changelog 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,3 +1,9 @@
+freebsd-utils (10.1-1) experimental; urgency=medium
+
+ * Upload from 10-STABLE to experimental
+
+ -- Christoph Egger <christoph at debian.org> Sun, 31 Aug 2014 12:37:04 -0700
+
freebsd-utils (10.0+ds1-1) unstable; urgency=low
[ Mats Erik Andersson ]
Modified: trunk/freebsd-utils/debian/patches/002_ifconfig.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/002_ifconfig.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/002_ifconfig.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,6 +1,8 @@
---- a/src/sbin/ifconfig/ifconfig.c
-+++ b/src/sbin/ifconfig/ifconfig.c
-@@ -76,6 +76,13 @@
+Index: freebsd-utils-jessie/src/sbin/ifconfig/ifconfig.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/ifconfig/ifconfig.c
++++ freebsd-utils-jessie/src/sbin/ifconfig/ifconfig.c
+@@ -76,6 +76,13 @@ static const char rcsid[] =
#include "ifconfig.h"
@@ -13,8 +15,8 @@
+
/*
* Since "struct ifreq" is composed of various union members, callers
- * should pay special attention to interprete the value.
-@@ -158,7 +165,7 @@
+ * should pay special attention to interpret the value.
+@@ -158,7 +165,7 @@ main(int argc, char *argv[])
all = downonly = uponly = namesonly = noload = verbose = 0;
/* Parse leading line options */
@@ -23,7 +25,7 @@
for (p = opts; p != NULL; p = p->next)
strlcat(options, p->opt, sizeof(options));
while ((c = getopt(argc, argv, options)) != -1) {
-@@ -954,7 +961,7 @@
+@@ -954,7 +961,7 @@ status(const struct afswtch *afp, const
putchar('\n');
for (;;) {
Modified: trunk/freebsd-utils/debian/patches/014_route.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/014_route.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/014_route.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,15 +1,17 @@
---- a/src/sbin/route/route.c
-+++ b/src/sbin/route/route.c
-@@ -163,7 +163,7 @@
+Index: freebsd-utils-jessie/src/sbin/route/route.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/route/route.c
++++ freebsd-utils-jessie/src/sbin/route/route.c
+@@ -162,7 +162,7 @@ main(int argc, char **argv)
if (argc < 2)
usage(NULL);
-- while ((ch = getopt(argc, argv, "nqdtv")) != -1)
-+ while ((ch = getopt(argc, argv, "+nqdtv")) != -1)
+- while ((ch = getopt(argc, argv, "46nqdtv")) != -1)
++ while ((ch = getopt(argc, argv, "+46nqdtv")) != -1)
switch(ch) {
- case 'n':
- nflag = 1;
-@@ -239,6 +239,11 @@
+ case '4':
+ #ifdef INET
+@@ -254,6 +254,11 @@ set_sofib(int fib)
if (fib < 0)
return (0);
Modified: trunk/freebsd-utils/debian/patches/021_netstat.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/021_netstat.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/021_netstat.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,18 +1,7 @@
---- a/src/usr.bin/netstat/netgraph.c
-+++ b/src/usr.bin/netstat/netgraph.c
-@@ -75,8 +75,8 @@
- const char *const modname = "ng_socket.ko";
- /* XXX We should get "mpath" from "sysctl kern.module_path" */
- const char *mpath[] = { "/", "/boot/", "/modules/", NULL };
-- struct nlist sym[] = { { .n_name = "_ngsocklist" },
-- { .n_name = NULL } };
-+ struct nlist sym[] = { {{ .n_name = "_ngsocklist" }},
-+ {{ .n_name = NULL }} };
- const char **pre;
- struct kld_file_stat ks;
- int fileid;
---- a/src/usr.bin/netstat/netstat.h
-+++ b/src/usr.bin/netstat/netstat.h
+Index: freebsd-utils-jessie/src/usr.bin/netstat/netstat.h
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.bin/netstat/netstat.h
++++ freebsd-utils-jessie/src/usr.bin/netstat/netstat.h
@@ -32,6 +32,19 @@
#include <sys/cdefs.h>
Modified: trunk/freebsd-utils/debian/patches/022_devd.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/022_devd.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/022_devd.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,15 +1,8 @@
---- a/src/etc/devd.conf
-+++ b/src/etc/devd.conf
-@@ -1,8 +1,5 @@
--# $FreeBSD$
--#
- # Refer to devd.conf(5) and devd(8) man pages for the details on how to
- # run and configure devd.
--#
-
- # NB: All regular expressions have an implicit ^$ around them.
- # NB: device-name is shorthand for 'match device-name'
-@@ -13,7 +10,6 @@
+Index: freebsd-utils-jessie/src/etc/devd.conf
+===================================================================
+--- freebsd-utils-jessie.orig/src/etc/devd.conf
++++ freebsd-utils-jessie/src/etc/devd.conf
+@@ -13,7 +13,6 @@ options {
# that they are returned from readdir(3). The rule-sets are combined
# to create a DFA that's used to match events to actions.
directory "/etc/devd";
@@ -17,7 +10,7 @@
pid-file "/var/run/devd.pid";
# Setup some shorthand for regex that we use later in the file.
-@@ -27,84 +23,6 @@
+@@ -27,84 +26,6 @@ options {
# Note that the attach/detach with the highest value wins, so that one can
# override these general rules.
@@ -102,7 +95,7 @@
# When a USB keyboard arrives, attach it as the console keyboard.
attach 100 {
device-name "ukbd0";
-@@ -115,24 +33,6 @@
+@@ -115,42 +36,6 @@ detach 100 {
action "/etc/rc.d/syscons setkeyboard /dev/kbd0";
};
@@ -110,6 +103,15 @@
- match "system" "DEVFS";
- match "subsystem" "CDEV";
- match "type" "CREATE";
+- match "cdev" "atp[0-9]+";
+-
+- action "/etc/rc.d/moused quietstart $cdev";
+-};
+-
+-notify 100 {
+- match "system" "DEVFS";
+- match "subsystem" "CDEV";
+- match "type" "CREATE";
- match "cdev" "ums[0-9]+";
-
- action "/etc/rc.d/moused quietstart $cdev";
@@ -118,6 +120,15 @@
-notify 100 {
- match "system" "DEVFS";
- match "subsystem" "CDEV";
+- match "type" "CREATE";
+- match "cdev" "wsp[0-9]+";
+-
+- action "/etc/rc.d/moused quietstart $cdev";
+-};
+-
+-notify 100 {
+- match "system" "DEVFS";
+- match "subsystem" "CDEV";
- match "type" "DESTROY";
- match "cdev" "ums[0-9]+";
-
@@ -127,7 +138,7 @@
# Firmware download into the ActiveWire board. After the firmware download is
# done, the device detaches and reappears as something new and shiny
# automatically.
-@@ -211,13 +111,6 @@
+@@ -229,13 +114,6 @@ nomatch 10 {
vendor $vendor bus $bus";
};
@@ -141,7 +152,7 @@
# Notify all users before beginning emergency shutdown when we get
# a _CRT or _HOT thermal event and we're going to power down the system
# very soon.
-@@ -259,19 +152,6 @@
+@@ -277,19 +155,6 @@ notify 10 {
action "logger -p kern.warn 'ZFS: checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size'";
};
Modified: trunk/freebsd-utils/debian/patches/026_kdump.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/026_kdump.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/026_kdump.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,6 +1,8 @@
---- a/src/usr.bin/kdump/kdump.c
-+++ b/src/usr.bin/kdump/kdump.c
-@@ -56,6 +56,7 @@
+Index: freebsd-utils-jessie/src/usr.bin/kdump/kdump.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.bin/kdump/kdump.c
++++ freebsd-utils-jessie/src/usr.bin/kdump/kdump.c
+@@ -56,6 +56,7 @@ extern int errno;
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -8,7 +10,7 @@
#include <sys/sysent.h>
#include <sys/un.h>
#include <sys/queue.h>
-@@ -71,6 +72,8 @@
+@@ -71,6 +72,8 @@ extern int errno;
#include <netinet/in.h>
#include <ctype.h>
#include <dlfcn.h>
@@ -17,7 +19,7 @@
#include <err.h>
#include <grp.h>
#include <inttypes.h>
-@@ -106,7 +109,7 @@
+@@ -106,7 +109,7 @@ void ktruser_rtld(int, unsigned char *);
void ktruser(int, unsigned char *);
void ktrcaprights(cap_rights_t *);
void ktrsockaddr(struct sockaddr *);
@@ -26,7 +28,7 @@
void ktrstruct(char *, size_t);
void ktrcapfail(struct ktr_cap_fail *);
void ktrfault(struct ktr_fault *);
-@@ -1161,6 +1164,7 @@
+@@ -1175,6 +1178,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
ip++;
narg--;
break;
@@ -34,7 +36,7 @@
case SYS_procctl:
putchar('(');
idtypename(*ip, decimal);
-@@ -1173,6 +1177,7 @@
+@@ -1187,6 +1191,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
ip++;
narg--;
break;
@@ -42,7 +44,7 @@
}
}
while (narg > 0) {
-@@ -1643,7 +1648,7 @@
+@@ -1661,7 +1666,7 @@ ktrsockaddr(struct sockaddr *sa)
}
void
@@ -51,11 +53,13 @@
{
char mode[12], timestr[PATH_MAX + 4];
struct passwd *pwd;
---- a/src/usr.bin/kdump/Makefile
-+++ b/src/usr.bin/kdump/Makefile
-@@ -12,6 +12,9 @@
- DPSRCS= kdump_subr.h
- CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I.
+Index: freebsd-utils-jessie/src/usr.bin/kdump/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.bin/kdump/Makefile
++++ freebsd-utils-jessie/src/usr.bin/kdump/Makefile
+@@ -18,6 +18,9 @@ CFLAGS+= -I${.CURDIR}/../ktrace -I${.CUR
+ CFLAGS+=-DPF
+ .endif
+CFLAGS+= -Wno-error=implicit-function-declaration
+LDADD+= -lfreebsd-glue
@@ -63,7 +67,7 @@
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+= linux_syscalls.c
.endif
-@@ -22,14 +25,14 @@
+@@ -28,14 +31,14 @@ CLEANFILES= ioctl.c kdump_subr.c kdump_s
ioctl.c: mkioctls
env MACHINE=${MACHINE} CPP="${CPP}" \
@@ -81,9 +85,11 @@
linux_syscalls.c:
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
---- a/src/usr.bin/kdump/mksubr
-+++ b/src/usr.bin/kdump/mksubr
-@@ -80,7 +80,10 @@
+Index: freebsd-utils-jessie/src/usr.bin/kdump/mksubr
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.bin/kdump/mksubr
++++ freebsd-utils-jessie/src/usr.bin/kdump/mksubr
+@@ -80,7 +80,10 @@ _EOF_
if ($i ~ /define/) \
break; \
++i; \
@@ -95,7 +101,7 @@
cat <<_EOF_
printf(">");
if (or == 0)
-@@ -113,7 +116,10 @@
+@@ -113,7 +116,10 @@ _EOF_
if ($i ~ /define/) \
break; \
++i; \
@@ -107,7 +113,7 @@
cat <<_EOF_
default: /* Should not reach */
printf("<invalid=%jd>", arg);
-@@ -141,10 +147,14 @@
+@@ -141,10 +147,14 @@ $name(intmax_t arg)
_EOF_
egrep "^#[[:space:]]*define[[:space:]]+"${grep}"[[:space:]]*" \
$include_dir/$file | \
@@ -124,7 +130,7 @@
cat <<_EOF_
else /* Should not reach */
printf("<invalid=%jd>", arg);
-@@ -161,6 +171,7 @@
+@@ -161,6 +171,7 @@ cat <<_EOF_
#include <sys/fcntl.h>
#include <sys/stat.h>
#include <sys/unistd.h>
@@ -132,7 +138,7 @@
#include <sys/mman.h>
#include <sys/wait.h>
#define _KERNEL
-@@ -175,11 +186,7 @@
+@@ -175,11 +186,7 @@ cat <<_EOF_
#include <sys/reboot.h>
#include <sched.h>
#include <sys/linker.h>
@@ -144,7 +150,7 @@
#include <aio.h>
#include <sys/sem.h>
#include <sys/ipc.h>
-@@ -193,6 +200,20 @@
+@@ -193,6 +200,20 @@ cat <<_EOF_
#include "kdump_subr.h"
@@ -165,7 +171,7 @@
/*
* These are simple support macros. print_or utilizes a variable
* defined in the calling function to track whether or not it should
-@@ -336,6 +357,7 @@
+@@ -336,6 +357,7 @@ idtypename(idtype_t idtype, int decimal)
case P_PID:
printf("P_PID");
break;
@@ -173,7 +179,7 @@
case P_PPID:
printf("P_PPID");
break;
-@@ -381,6 +403,7 @@
+@@ -381,6 +403,7 @@ idtypename(idtype_t idtype, int decimal)
case P_PSETID:
printf("P_PSETID");
break;
@@ -181,7 +187,7 @@
default:
if (decimal) {
printf("%d", idtype);
-@@ -438,10 +461,14 @@
+@@ -438,10 +461,14 @@ vmprotname (int type)
void
socktypenamewithflags(int type)
{
@@ -196,7 +202,7 @@
socktypename(type);
}
_EOF_
-@@ -456,7 +483,7 @@
+@@ -456,7 +483,7 @@ auto_or_type "flockname" "
auto_or_type "getfsstatflagsname" "MNT_[A-Z]+[[:space:]]+[1-9][0-9]*" "sys/mount.h"
auto_switch_type "kldsymcmdname" "KLDSYM_[A-Z]+[[:space:]]+[0-9]+" "sys/linker.h"
auto_switch_type "kldunloadfflagsname" "LINKER_UNLOAD_[A-Z]+[[:space:]]+[0-9]+" "sys/linker.h"
@@ -205,7 +211,7 @@
auto_switch_type "madvisebehavname" "_?MADV_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
auto_switch_type "minheritname" "INHERIT_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
auto_or_type "mlockallname" "MCL_[A-Z]+[[:space:]]+0x[0-9]+" "sys/mman.h"
-@@ -472,7 +499,7 @@
+@@ -472,7 +499,7 @@ auto_switch_type "quotactlname" "
auto_or_type "rebootoptname" "RB_[A-Z]+[[:space:]]+0x[0-9]+" "sys/reboot.h"
auto_or_type "rforkname" "RF[A-Z]+[[:space:]]+\([0-9]+<<[0-9]+\)" "sys/unistd.h"
auto_switch_type "rlimitname" "RLIMIT_[A-Z]+[[:space:]]+[0-9]+" "sys/resource.h"
@@ -214,7 +220,7 @@
auto_switch_type "sendfileflagsname" "SF_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"
auto_or_type "shmatname" "SHM_[A-Z]+[[:space:]]+[0-9]{6}+" "sys/shm.h"
auto_switch_type "shutdownhowname" "SHUT_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"
-@@ -511,7 +538,11 @@
+@@ -511,7 +538,11 @@ egrep "^#[[:space:]]*define[[:space:]]+F
break; \
++i; \
if (o <= $(i+1)) \
@@ -226,7 +232,7 @@
else \
exit; \
o = $(i+1) }'
-@@ -549,7 +580,6 @@
+@@ -549,7 +580,6 @@ cat <<_EOF_
void
mmapflagsname(int flags)
{
@@ -234,7 +240,7 @@
int or = 0;
printf("%#x<", flags);
_EOF_
-@@ -559,13 +589,17 @@
+@@ -559,13 +589,17 @@ egrep "^#[[:space:]]*define[[:space:]]+M
if ($i ~ /define/) \
break; \
++i; \
@@ -254,7 +260,7 @@
if (align != 0) {
if (align == MAP_ALIGNED_SUPER)
print_or("MAP_ALIGNED_SUPER", or);
-@@ -577,6 +611,7 @@
+@@ -577,6 +611,7 @@ cat <<_EOF_
printf(">");
if (or == 0)
printf("<invalid>%d", flags);
@@ -262,7 +268,7 @@
}
/*
-@@ -628,7 +663,10 @@
+@@ -628,7 +663,10 @@ egrep "^#[[:space:]]*define[[:space:]]+M
if ($i ~ /define/) \
break; \
++i; \
@@ -274,7 +280,7 @@
cat <<_EOF_
printf(">");
}
-@@ -649,7 +687,10 @@
+@@ -649,7 +687,10 @@ egrep "^#[[:space:]]*define[[:space:]]+S
if ($i ~ /define/) \
break; \
++i; \
@@ -286,8 +292,10 @@
cat <<_EOF_
default:
switch (sig) {
+Index: freebsd-utils-jessie/src/usr.bin/kdump/stat16.h
+===================================================================
--- /dev/null
-+++ b/src/usr.bin/kdump/stat16.h
++++ freebsd-utils-jessie/src/usr.bin/kdump/stat16.h
@@ -0,0 +1,55 @@
+/* Copyright (C) 2002, 2006 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
Modified: trunk/freebsd-utils/debian/patches/035_nfs.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/035_nfs.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/035_nfs.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,6 +1,8 @@
---- a/src/sbin/mount_nfs/mount_nfs.c
-+++ b/src/sbin/mount_nfs/mount_nfs.c
-@@ -668,12 +668,18 @@
+Index: freebsd-utils-jessie/src/sbin/mount_nfs/mount_nfs.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/mount_nfs/mount_nfs.c
++++ freebsd-utils-jessie/src/sbin/mount_nfs/mount_nfs.c
+@@ -694,12 +694,18 @@ fallback_mount(struct iovec *iov, int io
static int
sec_name_to_num(char *sec)
{
@@ -19,7 +21,7 @@
if (!strcmp(sec, "sys"))
return (AUTH_SYS);
return (-1);
-@@ -683,12 +689,18 @@
+@@ -709,12 +715,18 @@ static char *
sec_num_to_name(int flavor)
{
switch (flavor) {
@@ -38,7 +40,7 @@
case AUTH_SYS:
return ("sys");
}
-@@ -833,9 +845,11 @@
+@@ -859,9 +871,11 @@ getnfsargs(char *spec, struct iovec **io
freeaddrinfo(ai_nfs);
build_iovec(iov, iovlen, "hostname", nam, (size_t)-1);
@@ -50,9 +52,11 @@
return (1);
}
---- a/src/usr.sbin/mountd/mountd.c
-+++ b/src/usr.sbin/mountd/mountd.c
-@@ -2115,12 +2115,18 @@
+Index: freebsd-utils-jessie/src/usr.sbin/mountd/mountd.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/mountd/mountd.c
++++ freebsd-utils-jessie/src/usr.sbin/mountd/mountd.c
+@@ -2115,12 +2115,18 @@ parsesec(char *seclist, struct exportlis
if (!strcmp(seclist, "sys"))
flavor = AUTH_SYS;
@@ -71,9 +75,11 @@
else {
if (cp)
*cp = savedc;
---- a/src/usr.sbin/rpc.lockd/lockd.c
-+++ b/src/usr.sbin/rpc.lockd/lockd.c
-@@ -997,7 +997,7 @@
+Index: freebsd-utils-jessie/src/usr.sbin/rpc.lockd/lockd.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/rpc.lockd/lockd.c
++++ freebsd-utils-jessie/src/usr.sbin/rpc.lockd/lockd.c
+@@ -997,7 +997,7 @@ init_nsm(void)
ret = callrpc("localhost", SM_PROG, SM_VERS, SM_UNMON_ALL,
(xdrproc_t)xdr_my_id, &id, (xdrproc_t)xdr_sm_stat, &stat);
if (ret == RPC_PROGUNAVAIL) {
@@ -82,7 +88,7 @@
clnt_sperrno(ret));
sleep(2);
continue;
-@@ -1006,7 +1006,7 @@
+@@ -1006,7 +1006,7 @@ init_nsm(void)
} while (0);
if (ret != 0) {
@@ -91,9 +97,11 @@
exit(1);
}
---- a/src/usr.sbin/rpc.lockd/kern.c
-+++ b/src/usr.sbin/rpc.lockd/kern.c
-@@ -52,7 +52,8 @@
+Index: freebsd-utils-jessie/src/usr.sbin/rpc.lockd/kern.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/rpc.lockd/kern.c
++++ freebsd-utils-jessie/src/usr.sbin/rpc.lockd/kern.c
+@@ -52,7 +52,8 @@ __FBSDID("$FreeBSD: stable/10/usr.sbin/r
#include <unistd.h>
#include <netdb.h>
@@ -103,9 +111,11 @@
#include <nfs/nfsproto.h>
#include <nfs/nfs_lock.h>
---- a/src/usr.sbin/rpc.statd/statd.c
-+++ b/src/usr.sbin/rpc.statd/statd.c
-@@ -58,6 +58,8 @@
+Index: freebsd-utils-jessie/src/usr.sbin/rpc.statd/statd.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/rpc.statd/statd.c
++++ freebsd-utils-jessie/src/usr.sbin/rpc.statd/statd.c
+@@ -58,6 +58,8 @@ __FBSDID("$FreeBSD: stable/10/usr.sbin/r
#define GETPORT_MAXTRY 20 /* Max tries to get a port # */
@@ -114,7 +124,7 @@
int debug = 0; /* Controls syslog() calls for debug messages */
char **hosts, *svcport_str = NULL;
-@@ -281,7 +283,7 @@
+@@ -281,7 +283,7 @@ main(int argc, char **argv)
free(port_list);
}
@@ -123,9 +133,11 @@
/* Note that it is NOT sensible to run this program from inetd - the */
/* protocol assumes that it will run immediately at boot time. */
---- a/src/usr.sbin/rpc.statd/rpc.statd.8
-+++ b/src/usr.sbin/rpc.statd/rpc.statd.8
-@@ -110,7 +110,7 @@
+Index: freebsd-utils-jessie/src/usr.sbin/rpc.statd/rpc.statd.8
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/rpc.statd/rpc.statd.8
++++ freebsd-utils-jessie/src/usr.sbin/rpc.statd/rpc.statd.8
+@@ -110,7 +110,7 @@ Instead, it should be run from
after the network has been started.
.Sh FILES
.Bl -tag -width /usr/include/rpcsvc/sm_inter.x -compact
@@ -134,9 +146,11 @@
non-volatile record of currently monitored hosts.
.It Pa /usr/include/rpcsvc/sm_inter.x
RPC protocol specification used by local applications to register monitoring requests.
---- a/src/usr.sbin/rpc.statd/Makefile
-+++ b/src/usr.sbin/rpc.statd/Makefile
-@@ -8,16 +8,21 @@
+Index: freebsd-utils-jessie/src/usr.sbin/rpc.statd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/rpc.statd/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/rpc.statd/Makefile
+@@ -8,16 +8,21 @@ CFLAGS+= -I.
WARNS?= 2
DPADD= ${LIBRPCSVC}
Modified: trunk/freebsd-utils/debian/patches/devd_link_c++_statically.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/devd_link_c++_statically.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/devd_link_c++_statically.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,6 +1,8 @@
---- a/src/sbin/devd/Makefile
-+++ b/src/sbin/devd/Makefile
-@@ -11,6 +11,18 @@
+Index: freebsd-utils-jessie/src/sbin/devd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/devd/Makefile
++++ freebsd-utils-jessie/src/sbin/devd/Makefile
+@@ -13,6 +13,18 @@ NO_SHARED?=YES
DPADD= ${LIBL} ${LIBUTIL}
LDADD= -ll -lutil
Modified: trunk/freebsd-utils/debian/patches/makefiles.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/makefiles.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/makefiles.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,17 +1,21 @@
---- a/src/usr.sbin/acpi/Makefile
-+++ b/src/usr.sbin/acpi/Makefile
+Index: freebsd-utils-jessie/src/usr.sbin/acpi/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/acpi/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/acpi/Makefile
@@ -2,6 +2,7 @@
# $Id: Makefile,v 1.1 2000/07/14 18:16:22 iwasaki Exp $
- # $FreeBSD$
+ # $FreeBSD: stable/10/usr.sbin/acpi/Makefile 118643 2003-08-08 03:20:59Z njl $
-SUBDIR= acpiconf acpidb acpidump iasl
+SUBDIR= acpiconf
+# acpidb acpidump iasl
.include <bsd.subdir.mk>
---- a/src/sbin/ifconfig/Makefile
-+++ b/src/sbin/ifconfig/Makefile
-@@ -38,6 +38,8 @@
+Index: freebsd-utils-jessie/src/sbin/ifconfig/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/ifconfig/Makefile
++++ freebsd-utils-jessie/src/sbin/ifconfig/Makefile
+@@ -38,6 +38,8 @@ SRCS+= ifieee80211.c regdomain.c # SIOC[
DPADD+= ${LIBBSDXML} ${LIBSBUF}
LDADD+= -lbsdxml -lsbuf
@@ -19,10 +23,12 @@
+
SRCS+= carp.c # SIOC[GS]VH support
SRCS+= ifgroup.c # ...
- SRCS+= ifpfsync.c # pfsync(4) support
---- a/src/usr.sbin/ppp/Makefile
-+++ b/src/usr.sbin/ppp/Makefile
-@@ -38,10 +38,10 @@
+ .if ${MK_PF} != "no"
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/ppp/Makefile
+@@ -38,10 +38,10 @@ BINMODE=550
BINMODE=4550
BINOWN= root
.endif
@@ -35,8 +41,10 @@
DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
---- a/src/usr.sbin/nfsd/Makefile
-+++ b/src/usr.sbin/nfsd/Makefile
+Index: freebsd-utils-jessie/src/usr.sbin/nfsd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/nfsd/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/nfsd/Makefile
@@ -3,5 +3,7 @@
PROG= nfsd
@@ -45,9 +53,11 @@
+LDADD= -ltirpc
.include <bsd.prog.mk>
---- a/src/usr.sbin/rpc.lockd/Makefile
-+++ b/src/usr.sbin/rpc.lockd/Makefile
-@@ -5,23 +5,27 @@
+Index: freebsd-utils-jessie/src/usr.sbin/rpc.lockd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/rpc.lockd/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/rpc.lockd/Makefile
+@@ -5,23 +5,27 @@ PROG= rpc.lockd
MAN= rpc.lockd.8
MLINKS= rpc.lockd.8 lockd.8
SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
@@ -80,9 +90,11 @@
test: ${.CURDIR}/test.c
cc -o test ${.CURDIR}/test.c -lrpcsvc
---- a/src/sbin/swapon/Makefile
-+++ b/src/sbin/swapon/Makefile
-@@ -9,6 +9,6 @@
+Index: freebsd-utils-jessie/src/sbin/swapon/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/swapon/Makefile
++++ freebsd-utils-jessie/src/sbin/swapon/Makefile
+@@ -9,6 +9,6 @@ MLINKS= swapon.8 swapoff.8
MLINKS+=swapon.8 swapctl.8
DPADD= ${LIBUTIL}
@@ -90,19 +102,23 @@
+LDADD= -lutil-freebsd -lfreebsd-glue
.include <bsd.prog.mk>
---- a/src/sbin/pfctl/Makefile
-+++ b/src/sbin/pfctl/Makefile
-@@ -18,7 +18,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/Makefile
++++ freebsd-utils-jessie/src/sbin/pfctl/Makefile
+@@ -28,7 +28,7 @@ CFLAGS+= -DWITH_INET
YFLAGS=
-LDADD+= -lm -lmd
-+LDADD+= -lm -lbsd
++LDADD+= -lm -lbsd -lfreebsd-glue
DPADD+= ${LIBM} ${LIBMD}
.include <bsd.prog.mk>
---- a/src/usr.sbin/authpf/Makefile
-+++ b/src/usr.sbin/authpf/Makefile
+Index: freebsd-utils-jessie/src/usr.sbin/authpf/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/authpf/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/authpf/Makefile
@@ -5,7 +5,7 @@
PROG= authpf
MAN= authpf.8
@@ -112,7 +128,7 @@
BINMODE= 6555
SRCS= authpf.c
-@@ -13,7 +13,7 @@
+@@ -13,7 +13,7 @@ SRCS= authpf.c
# XXX ALTQ:
CFLAGS+= -DENABLE_ALTQ
@@ -121,8 +137,10 @@
DPADD+= ${LIBM} ${LIBMD} ${LIBUTIL}
WARNS?= 3
---- a/src/sbin/savecore/Makefile
-+++ b/src/sbin/savecore/Makefile
+Index: freebsd-utils-jessie/src/sbin/savecore/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/savecore/Makefile
++++ freebsd-utils-jessie/src/sbin/savecore/Makefile
@@ -2,7 +2,7 @@
PROG= savecore
@@ -132,8 +150,10 @@
MAN= savecore.8
.include <bsd.prog.mk>
---- a/src/sbin/geom/class/raid/Makefile
-+++ b/src/sbin/geom/class/raid/Makefile
+Index: freebsd-utils-jessie/src/sbin/geom/class/raid/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/geom/class/raid/Makefile
++++ freebsd-utils-jessie/src/sbin/geom/class/raid/Makefile
@@ -5,6 +5,6 @@
GEOM_CLASS= raid
@@ -142,9 +162,11 @@
+#LDADD= -lmd
.include <bsd.lib.mk>
---- a/src/sbin/geom/class/eli/Makefile
-+++ b/src/sbin/geom/class/eli/Makefile
-@@ -9,7 +9,7 @@
+Index: freebsd-utils-jessie/src/sbin/geom/class/eli/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/geom/class/eli/Makefile
++++ freebsd-utils-jessie/src/sbin/geom/class/eli/Makefile
+@@ -9,7 +9,7 @@ SRCS+= pkcs5v2.c
SRCS+= sha2.c
DPADD= ${LIBMD} ${LIBCRYPTO}
@@ -153,9 +175,11 @@
WARNS?= 3
---- a/src/sbin/geom/class/Makefile
-+++ b/src/sbin/geom/class/Makefile
-@@ -7,18 +7,14 @@
+Index: freebsd-utils-jessie/src/sbin/geom/class/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/geom/class/Makefile
++++ freebsd-utils-jessie/src/sbin/geom/class/Makefile
+@@ -7,18 +7,14 @@ SUBDIR+=concat
.if ${MK_OPENSSL} != "no"
SUBDIR+=eli
.endif
@@ -174,8 +198,10 @@
-SUBDIR+=virstor
.include <bsd.subdir.mk>
---- a/src/sbin/geom/class/mirror/Makefile
-+++ b/src/sbin/geom/class/mirror/Makefile
+Index: freebsd-utils-jessie/src/sbin/geom/class/mirror/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/geom/class/mirror/Makefile
++++ freebsd-utils-jessie/src/sbin/geom/class/mirror/Makefile
@@ -5,6 +5,6 @@
GEOM_CLASS= mirror
@@ -184,8 +210,10 @@
+#LDADD= -lmd
.include <bsd.lib.mk>
---- a/src/sbin/geom/class/raid3/Makefile
-+++ b/src/sbin/geom/class/raid3/Makefile
+Index: freebsd-utils-jessie/src/sbin/geom/class/raid3/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/geom/class/raid3/Makefile
++++ freebsd-utils-jessie/src/sbin/geom/class/raid3/Makefile
@@ -5,6 +5,6 @@
GEOM_CLASS= raid3
@@ -194,9 +222,11 @@
+#LDADD= -lmd
.include <bsd.lib.mk>
---- a/src/sbin/geom/core/Makefile
-+++ b/src/sbin/geom/core/Makefile
-@@ -12,6 +12,6 @@
+Index: freebsd-utils-jessie/src/sbin/geom/core/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/geom/core/Makefile
++++ freebsd-utils-jessie/src/sbin/geom/core/Makefile
+@@ -12,6 +12,6 @@ CFLAGS+= -DGEOM_CLASS_DIR=\"${GEOM_CLASS
CFLAGS+= -I${.CURDIR}/../../../sys -I${.CURDIR} -I${.CURDIR}/..
DPADD= ${LIBGEOM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL}
@@ -204,9 +234,11 @@
+LDADD= -lgeom -ldl -lbsd
.include <bsd.prog.mk>
---- a/src/usr.sbin/pppctl/Makefile
-+++ b/src/usr.sbin/pppctl/Makefile
-@@ -6,6 +6,6 @@
+Index: freebsd-utils-jessie/src/usr.sbin/pppctl/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/pppctl/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/pppctl/Makefile
+@@ -6,6 +6,6 @@ MAN= pppctl.8
WARNS?= 2
DPADD= ${LIBPTHREAD} ${LIBEDIT} ${LIBTERMCAP}
@@ -214,8 +246,10 @@
+LDADD= -lpthread -ledit -lbsd
.include <bsd.prog.mk>
---- a/src/sbin/mount_nfs/Makefile
-+++ b/src/sbin/mount_nfs/Makefile
+Index: freebsd-utils-jessie/src/sbin/mount_nfs/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/mount_nfs/Makefile
++++ freebsd-utils-jessie/src/sbin/mount_nfs/Makefile
@@ -4,6 +4,7 @@
PROG= mount_nfs
@@ -224,9 +258,11 @@
MAN= mount_nfs.8
MLINKS= mount_nfs.8 mount_oldnfs.8
---- a/src/usr.sbin/mountd/Makefile
-+++ b/src/usr.sbin/mountd/Makefile
-@@ -6,12 +6,12 @@
+Index: freebsd-utils-jessie/src/usr.sbin/mountd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/mountd/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/mountd/Makefile
+@@ -6,12 +6,12 @@ SRCS= mountd.c getmntopts.c
MAN= exports.5 netgroup.5 mountd.8
MOUNT= ${.CURDIR}/../../sbin/mount
@@ -241,8 +277,10 @@
+LDADD= -ltirpc -lbsd
.include <bsd.prog.mk>
---- a/src/usr.sbin/arp/Makefile
-+++ b/src/usr.sbin/arp/Makefile
+Index: freebsd-utils-jessie/src/usr.sbin/arp/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/arp/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/arp/Makefile
@@ -3,6 +3,7 @@
PROG= arp
@@ -251,9 +289,11 @@
WARNS?= 3
---- a/src/usr.bin/netstat/Makefile
-+++ b/src/usr.bin/netstat/Makefile
-@@ -29,7 +29,8 @@
+Index: freebsd-utils-jessie/src/usr.bin/netstat/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.bin/netstat/Makefile
++++ freebsd-utils-jessie/src/usr.bin/netstat/Makefile
+@@ -34,7 +34,8 @@ CFLAGS+=-DPF
BINGRP= kmem
BINMODE=2555
DPADD= ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
@@ -263,9 +303,11 @@
.if ${MK_NETGRAPH_SUPPORT} != "no"
SRCS+= netgraph.c
---- a/src/sbin/umount/Makefile
-+++ b/src/sbin/umount/Makefile
-@@ -6,6 +6,8 @@
+Index: freebsd-utils-jessie/src/sbin/umount/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/umount/Makefile
++++ freebsd-utils-jessie/src/sbin/umount/Makefile
+@@ -6,6 +6,8 @@ PROG= umount
SRCS= umount.c vfslist.c mounttab.c
MAN= umount.8
@@ -274,9 +316,11 @@
MOUNT= ${.CURDIR}/../mount
UMNTALL= ${.CURDIR}/../../usr.sbin/rpc.umntall
CFLAGS+= -I${MOUNT} -I${UMNTALL}
---- a/src/sbin/route/Makefile
-+++ b/src/sbin/route/Makefile
-@@ -9,6 +9,8 @@
+Index: freebsd-utils-jessie/src/sbin/route/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/route/Makefile
++++ freebsd-utils-jessie/src/sbin/route/Makefile
+@@ -9,6 +9,8 @@ SRCS= route.c keywords.h
WARNS?= 3
CLEANFILES+=keywords.h
@@ -285,9 +329,11 @@
CFLAGS+= -DNS
.if ${MK_INET_SUPPORT} != "no"
CFLAGS+= -DINET
---- a/src/sbin/mount/Makefile
-+++ b/src/sbin/mount/Makefile
-@@ -7,6 +7,8 @@
+Index: freebsd-utils-jessie/src/sbin/mount/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/mount/Makefile
++++ freebsd-utils-jessie/src/sbin/mount/Makefile
+@@ -7,6 +7,8 @@ MAN= mount.8 mount.conf.8
# We do NOT install the getmntopts.3 man page.
DPADD= ${LIBUTIL}
@@ -297,9 +343,11 @@
+LDADD+= -lfreebsd-glue
.include <bsd.prog.mk>
---- a/src/usr.sbin/jail/Makefile
-+++ b/src/usr.sbin/jail/Makefile
-@@ -7,7 +7,9 @@
+Index: freebsd-utils-jessie/src/usr.sbin/jail/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/jail/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/jail/Makefile
+@@ -7,7 +7,9 @@ MAN= jail.8 jail.conf.5
SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h
DPADD= ${LIBJAIL} ${LIBKVM} ${LIBUTIL} ${LIBL}
@@ -310,9 +358,11 @@
NO_WMISSING_VARIABLE_DECLARATIONS=
---- a/src/sbin/camcontrol/Makefile
-+++ b/src/sbin/camcontrol/Makefile
-@@ -12,7 +12,7 @@
+Index: freebsd-utils-jessie/src/sbin/camcontrol/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/camcontrol/Makefile
++++ freebsd-utils-jessie/src/sbin/camcontrol/Makefile
+@@ -12,7 +12,7 @@ CFLAGS+= -DMINIMALISTIC
WARNS?= 3
.endif
DPADD= ${LIBCAM} ${LIBSBUF} ${LIBUTIL}
@@ -321,19 +371,24 @@
MAN= camcontrol.8
.include <bsd.prog.mk>
---- a/src/sbin/mdconfig/Makefile
-+++ b/src/sbin/mdconfig/Makefile
-@@ -4,6 +4,6 @@
+Index: freebsd-utils-jessie/src/sbin/mdconfig/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/mdconfig/Makefile
++++ freebsd-utils-jessie/src/sbin/mdconfig/Makefile
+@@ -6,7 +6,7 @@ PROG= mdconfig
MAN= mdconfig.8
DPADD= ${LIBUTIL} ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF}
-LDADD= -lutil -lgeom -lbsdxml -lsbuf
+LDADD= -lgeom
- .include <bsd.prog.mk>
---- a/src/sbin/devd/Makefile
-+++ b/src/sbin/devd/Makefile
-@@ -9,7 +9,7 @@
+ .if ${MK_TESTS} != "no"
+ SUBDIR+= tests
+Index: freebsd-utils-jessie/src/sbin/devd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/devd/Makefile
++++ freebsd-utils-jessie/src/sbin/devd/Makefile
+@@ -11,7 +11,7 @@ WARNS?= 3
NO_SHARED?=YES
DPADD= ${LIBL} ${LIBUTIL}
@@ -342,9 +397,11 @@
LIBSTDC++ != \
g++ -print-file-name=crt1.o ; \
---- a/src/usr.sbin/powerd/Makefile
-+++ b/src/usr.sbin/powerd/Makefile
-@@ -4,6 +4,6 @@
+Index: freebsd-utils-jessie/src/usr.sbin/powerd/Makefile
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/powerd/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/powerd/Makefile
+@@ -4,6 +4,6 @@ PROG= powerd
MAN= powerd.8
DPADD= ${LIBUTIL}
@@ -352,16 +409,20 @@
+#LDADD= -lutil
.include <bsd.prog.mk>
+Index: freebsd-utils-jessie/src/bin/Makefile
+===================================================================
--- /dev/null
-+++ b/src/bin/Makefile
++++ freebsd-utils-jessie/src/bin/Makefile
@@ -0,0 +1,5 @@
+SUBDIR = \
+ kenv \
+ ${NULL}
+
+.include <bsd.subdir.mk>
+Index: freebsd-utils-jessie/src/sbin/Makefile
+===================================================================
--- /dev/null
-+++ b/src/sbin/Makefile
++++ freebsd-utils-jessie/src/sbin/Makefile
@@ -0,0 +1,36 @@
+SUBDIR = \
+ devd \
@@ -399,8 +460,10 @@
+.endif
+
+.include <bsd.subdir.mk>
+Index: freebsd-utils-jessie/src/usr.bin/Makefile
+===================================================================
--- /dev/null
-+++ b/src/usr.bin/Makefile
++++ freebsd-utils-jessie/src/usr.bin/Makefile
@@ -0,0 +1,9 @@
+SUBDIR = \
+ kdump \
@@ -411,8 +474,10 @@
+ vmstat \
+
+.include <bsd.subdir.mk>
+Index: freebsd-utils-jessie/src/usr.sbin/Makefile
+===================================================================
--- /dev/null
-+++ b/src/usr.sbin/Makefile
++++ freebsd-utils-jessie/src/usr.sbin/Makefile
@@ -0,0 +1,22 @@
+SUBDIR = \
+ kbdcontrol \
@@ -436,8 +501,10 @@
+.endif
+
+.include <bsd.subdir.mk>
+Index: freebsd-utils-jessie/src/Makefile
+===================================================================
--- /dev/null
-+++ b/src/Makefile
++++ freebsd-utils-jessie/src/Makefile
@@ -0,0 +1,14 @@
+SUBDIR = \
+ bin \
Modified: trunk/freebsd-utils/debian/patches/netstat_numeric_default.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/netstat_numeric_default.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/netstat_numeric_default.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -5,9 +5,11 @@
Note: it relies on /etc/networks defining "default", which FreeBSD's
currently doesn't.
---- a/src/usr.bin/netstat/route.c
-+++ b/src/usr.bin/netstat/route.c
-@@ -622,12 +622,7 @@
+Index: freebsd-utils-jessie/src/usr.bin/netstat/route.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.bin/netstat/route.c
++++ freebsd-utils-jessie/src/usr.bin/netstat/route.c
+@@ -707,12 +707,7 @@ fmt_sockaddr(struct sockaddr *sa, struct
{
struct sockaddr_in *sockin = (struct sockaddr_in *)sa;
Modified: trunk/freebsd-utils/debian/patches/pf_regex_c.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/pf_regex_c.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/pf_regex_c.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -13,9 +13,11 @@
exit 0
---- a/src/contrib/pf/authpf/authpf.c
-+++ b/src/contrib/pf/authpf/authpf.c
-@@ -33,7 +33,7 @@
+Index: freebsd-utils-jessie/src/contrib/pf/authpf/authpf.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/authpf/authpf.c
++++ freebsd-utils-jessie/src/contrib/pf/authpf/authpf.c
+@@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: stable/10/contrib/pf
#include <err.h>
#include <errno.h>
@@ -24,7 +26,7 @@
#include <inttypes.h>
#endif
#include <login_cap.h>
-@@ -74,7 +74,7 @@
+@@ -74,7 +74,7 @@ struct timeval Tstart, Tend; /* start an
volatile sig_atomic_t want_death;
static void need_death(int signo);
@@ -33,7 +35,7 @@
static __dead2 void do_death(int);
#else
static __dead void do_death(int);
-@@ -155,7 +155,7 @@
+@@ -155,7 +155,7 @@ main(void)
else
shell = pw->pw_shell;
@@ -42,7 +44,7 @@
login_close(lc);
#endif
-@@ -163,7 +163,7 @@
+@@ -163,7 +163,7 @@ main(void)
strcmp(shell, PATH_AUTHPF_SHELL_NOIP)) {
syslog(LOG_ERR, "wrong shell for user %s, uid %u",
pw->pw_name, pw->pw_uid);
@@ -51,7 +53,7 @@
login_close(lc);
#else
if (shell != pw->pw_shell)
-@@ -172,7 +172,7 @@
+@@ -172,7 +172,7 @@ main(void)
goto die;
}
@@ -60,7 +62,7 @@
login_close(lc);
#else
if (shell != pw->pw_shell)
-@@ -932,7 +932,7 @@
+@@ -932,7 +932,7 @@ need_death(int signo __unused)
/*
* function that removes our stuff when we go away.
*/
@@ -69,9 +71,11 @@
static __dead2 void
#else
static __dead void
---- a/src/contrib/pf/ftp-proxy/ftp-proxy.c
-+++ b/src/contrib/pf/ftp-proxy/ftp-proxy.c
-@@ -585,7 +585,7 @@
+Index: freebsd-utils-jessie/src/contrib/pf/ftp-proxy/ftp-proxy.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/ftp-proxy/ftp-proxy.c
++++ freebsd-utils-jessie/src/contrib/pf/ftp-proxy/ftp-proxy.c
+@@ -585,7 +585,7 @@ logmsg(int pri, const char *message, ...
/* We don't care about truncation. */
vsnprintf(buf, sizeof buf, message, ap);
@@ -80,8 +84,10 @@
strvis(visbuf, buf, VIS_CSTYLE | VIS_NL);
#else
strnvis(visbuf, buf, sizeof visbuf, VIS_CSTYLE | VIS_NL);
---- a/src/contrib/pf/libevent/kqueue.c
-+++ b/src/contrib/pf/libevent/kqueue.c
+Index: freebsd-utils-jessie/src/contrib/pf/libevent/kqueue.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/libevent/kqueue.c
++++ freebsd-utils-jessie/src/contrib/pf/libevent/kqueue.c
@@ -48,7 +48,7 @@
#include <inttypes.h>
#endif
@@ -91,9 +97,11 @@
#define INTPTR(x) (intptr_t)x
#else
#define INTPTR(x) x
---- a/src/contrib/pf/pflogd/pflogd.c
-+++ b/src/contrib/pf/pflogd/pflogd.c
-@@ -51,7 +51,7 @@
+Index: freebsd-utils-jessie/src/contrib/pf/pflogd/pflogd.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/pflogd/pflogd.c
++++ freebsd-utils-jessie/src/contrib/pf/pflogd/pflogd.c
+@@ -51,7 +51,7 @@ __FBSDID("$FreeBSD: stable/10/contrib/pf
#include <errno.h>
#include <stdarg.h>
#include <fcntl.h>
@@ -102,7 +110,7 @@
#include <ifaddrs.h>
#include "pidfile.h"
#else
-@@ -161,7 +161,7 @@
+@@ -161,7 +161,7 @@ logmsg(int pri, const char *message, ...
va_end(ap);
}
@@ -111,7 +119,7 @@
__dead2 void
#else
__dead void
-@@ -215,7 +215,7 @@
+@@ -215,7 +215,7 @@ set_pcap_filter(void)
int
if_exists(char *ifname)
{
@@ -120,7 +128,7 @@
struct ifaddrs *ifdata, *mb;
int exists = 0;
-@@ -406,7 +406,7 @@
+@@ -406,7 +406,7 @@ int
scan_dump(FILE *fp, off_t size)
{
struct pcap_file_header hdr;
@@ -129,7 +137,7 @@
struct pcap_sf_pkthdr ph;
#else
struct pcap_pkthdr ph;
-@@ -479,7 +479,7 @@
+@@ -479,7 +479,7 @@ void
dump_packet_nobuf(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
{
FILE *f = (FILE *)user;
@@ -138,7 +146,7 @@
struct pcap_sf_pkthdr sh;
#endif
-@@ -488,7 +488,7 @@
+@@ -488,7 +488,7 @@ dump_packet_nobuf(u_char *user, const st
return;
}
@@ -147,7 +155,7 @@
sh.ts.tv_sec = (bpf_int32)h->ts.tv_sec;
sh.ts.tv_usec = (bpf_int32)h->ts.tv_usec;
sh.caplen = h->caplen;
-@@ -501,7 +501,7 @@
+@@ -501,7 +501,7 @@ dump_packet_nobuf(u_char *user, const st
off_t pos = ftello(f);
/* try to undo header to prevent corruption */
@@ -156,7 +164,7 @@
if (pos < sizeof(sh) ||
ftruncate(fileno(f), pos - sizeof(sh))) {
#else
-@@ -576,7 +576,7 @@
+@@ -576,7 +576,7 @@ void
dump_packet(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
{
FILE *f = (FILE *)user;
@@ -165,7 +173,7 @@
struct pcap_sf_pkthdr sh;
size_t len = sizeof(sh) + h->caplen;
#else
-@@ -609,7 +609,7 @@
+@@ -609,7 +609,7 @@ dump_packet(u_char *user, const struct p
}
append:
@@ -174,9 +182,11 @@
sh.ts.tv_sec = (bpf_int32)h->ts.tv_sec;
sh.ts.tv_usec = (bpf_int32)h->ts.tv_usec;
sh.caplen = h->caplen;
---- a/src/contrib/pf/pflogd/pidfile.c
-+++ b/src/contrib/pf/pflogd/pidfile.c
-@@ -48,7 +48,7 @@
+Index: freebsd-utils-jessie/src/contrib/pf/pflogd/pidfile.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/pflogd/pidfile.c
++++ freebsd-utils-jessie/src/contrib/pf/pflogd/pidfile.c
+@@ -41,7 +41,7 @@ static const char rcsid[] = "$OpenBSD: p
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -185,9 +195,11 @@
#include "pidfile.h"
#else
#include <util.h>
---- a/src/contrib/pf/pflogd/privsep.c
-+++ b/src/contrib/pf/pflogd/privsep.c
-@@ -73,7 +73,7 @@
+Index: freebsd-utils-jessie/src/contrib/pf/pflogd/privsep.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/pflogd/privsep.c
++++ freebsd-utils-jessie/src/contrib/pf/pflogd/privsep.c
+@@ -73,7 +73,7 @@ priv_init(void)
int snaplen, ret, olderrno;
struct passwd *pw;
@@ -196,9 +208,11 @@
for (i = 1; i < NSIG; i++)
#else
for (i = 1; i < _NSIG; i++)
---- a/src/contrib/pf/tftp-proxy/filter.c
-+++ b/src/contrib/pf/tftp-proxy/filter.c
-@@ -298,7 +298,7 @@
+Index: freebsd-utils-jessie/src/contrib/pf/tftp-proxy/filter.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/contrib/pf/tftp-proxy/filter.c
++++ freebsd-utils-jessie/src/contrib/pf/tftp-proxy/filter.c
+@@ -298,7 +298,7 @@ prepare_rule(u_int32_t id, int rs_num, s
pfr.rule.quick = 1;
pfr.rule.log = rule_log;
pfr.rule.keep_state = 1;
@@ -207,9 +221,11 @@
pfr.rule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0);
pfr.rule.flagset = (proto == IPPROTO_TCP ?
(TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0);
---- a/src/sbin/pfctl/parse.y
-+++ b/src/sbin/pfctl/parse.y
-@@ -33,7 +33,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/parse.y
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/parse.y
++++ freebsd-utils-jessie/src/sbin/pfctl/parse.y
+@@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: stable/10/sbin/pfctl
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -218,7 +234,7 @@
#include <sys/sysctl.h>
#endif
#include <net/if.h>
-@@ -2217,7 +2217,7 @@
+@@ -2217,7 +2217,7 @@ pfrule : action dir logquick interface
}
free($9.queues.pqname);
}
@@ -227,7 +243,7 @@
r.divert.port = $9.divert.port;
#else
if ((r.divert.port = $9.divert.port)) {
-@@ -2362,7 +2362,7 @@
+@@ -2362,7 +2362,7 @@ filter_opt : USER uids {
filter_opts.rtableid = $2;
}
| DIVERTTO portplain {
@@ -236,7 +252,7 @@
filter_opts.divert.port = $2.a;
if (!filter_opts.divert.port) {
yyerror("invalid divert port: %u", ntohs($2.a));
-@@ -2371,7 +2371,7 @@
+@@ -2371,7 +2371,7 @@ filter_opt : USER uids {
#endif
}
| DIVERTTO STRING PORT portplain {
@@ -245,7 +261,7 @@
if ((filter_opts.divert.addr = host($2)) == NULL) {
yyerror("could not parse divert address: %s",
$2);
-@@ -2389,7 +2389,7 @@
+@@ -2389,7 +2389,7 @@ filter_opt : USER uids {
}
}
| DIVERTREPLY {
@@ -254,7 +270,7 @@
yyerror("divert-reply has no meaning in FreeBSD pf(4)");
YYERROR;
#else
-@@ -2855,7 +2855,7 @@
+@@ -2855,7 +2855,7 @@ host : STRING {
char *buf;
/* ie. for 10/8 parsing */
@@ -263,7 +279,7 @@
if (asprintf(&buf, "%lld/%lld", (long long)$1, (long long)$3) == -1)
#else
if (asprintf(&buf, "%lld/%lld", $1, $3) == -1)
-@@ -6020,7 +6020,7 @@
+@@ -6020,7 +6020,7 @@ pfctl_load_anchors(int dev, struct pfctl
int
rt_tableid_max(void)
{
@@ -272,9 +288,11 @@
int fibs;
size_t l = sizeof(fibs);
---- a/src/sbin/pfctl/pfctl.c
-+++ b/src/sbin/pfctl/pfctl.c
-@@ -39,7 +39,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/pfctl.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/pfctl.c
++++ freebsd-utils-jessie/src/sbin/pfctl/pfctl.c
+@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD: stable/10/sbin/pfctl
#include <sys/socket.h>
#include <sys/stat.h>
@@ -283,7 +301,7 @@
#include <sys/endian.h>
#endif
-@@ -250,7 +250,7 @@
+@@ -251,7 +251,7 @@ pfctl_enable(int dev, int opts)
if (ioctl(dev, DIOCSTART)) {
if (errno == EEXIST)
errx(1, "pf already enabled");
@@ -292,7 +310,7 @@
else if (errno == ESRCH)
errx(1, "pfil registeration failed");
#endif
-@@ -2185,7 +2185,7 @@
+@@ -2186,7 +2186,7 @@ main(int argc, char *argv[])
/* turn off options */
opts &= ~ (PF_OPT_DISABLE | PF_OPT_ENABLE);
clearopt = showopt = debugopt = NULL;
@@ -301,9 +319,11 @@
altqsupport = 0;
#else
altqsupport = 1;
---- a/src/sbin/pfctl/pfctl.h
-+++ b/src/sbin/pfctl/pfctl.h
-@@ -86,7 +86,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/pfctl.h
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/pfctl.h
++++ freebsd-utils-jessie/src/sbin/pfctl/pfctl.h
+@@ -86,7 +86,7 @@ void warn_namespace_collision(const cha
int pfctl_show_ifaces(const char *, int);
FILE *pfctl_fopen(const char *, const char *);
@@ -312,9 +332,11 @@
extern int altqsupport;
extern int dummynetsupport;
#define HTONL(x) (x) = htonl((__uint32_t)(x))
---- a/src/sbin/pfctl/pfctl_altq.c
-+++ b/src/sbin/pfctl/pfctl_altq.c
-@@ -77,7 +77,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/pfctl_altq.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/pfctl_altq.c
++++ freebsd-utils-jessie/src/sbin/pfctl/pfctl_altq.c
+@@ -77,7 +77,7 @@ static int gsc_add_seg(struct gen_sc *
double);
static double sc_x2y(struct service_curve *, double);
@@ -323,7 +345,7 @@
u_int32_t getifspeed(int, char *);
#else
u_int32_t getifspeed(char *);
-@@ -153,7 +153,7 @@
+@@ -153,7 +153,7 @@ print_altq(const struct pf_altq *a, unsi
return;
}
@@ -332,7 +354,7 @@
if (a->local_flags & PFALTQ_FLAG_IF_REMOVED)
printf("INACTIVE ");
#endif
-@@ -193,7 +193,7 @@
+@@ -193,7 +193,7 @@ print_queue(const struct pf_altq *a, uns
{
unsigned int i;
@@ -341,7 +363,7 @@
if (a->local_flags & PFALTQ_FLAG_IF_REMOVED)
printf("INACTIVE ");
#endif
-@@ -239,7 +239,7 @@
+@@ -239,7 +239,7 @@ eval_pfaltq(struct pfctl *pf, struct pf_
if (bw->bw_absolute > 0)
pa->ifbandwidth = bw->bw_absolute;
else
@@ -350,7 +372,7 @@
if ((rate = getifspeed(pf->dev, pa->ifname)) == 0) {
#else
if ((rate = getifspeed(pa->ifname)) == 0) {
-@@ -1095,7 +1095,7 @@
+@@ -1095,7 +1095,7 @@ rate2str(double rate)
return (buf);
}
@@ -359,7 +381,7 @@
/*
* XXX
* FreeBSD does not have SIOCGIFDATA.
-@@ -1150,7 +1150,7 @@
+@@ -1150,7 +1150,7 @@ getifmtu(char *ifname)
sizeof(ifr.ifr_name))
errx(1, "getifmtu: strlcpy");
if (ioctl(s, SIOCGIFMTU, (caddr_t)&ifr) == -1)
@@ -368,9 +390,11 @@
ifr.ifr_mtu = 1500;
#else
err(1, "SIOCGIFMTU");
---- a/src/sbin/pfctl/pfctl_optimize.c
-+++ b/src/sbin/pfctl/pfctl_optimize.c
-@@ -862,7 +862,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/pfctl_optimize.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/pfctl_optimize.c
++++ freebsd-utils-jessie/src/sbin/pfctl/pfctl_optimize.c
+@@ -862,7 +862,7 @@ block_feedback(struct pfctl *pf, struct
break;
}
}
@@ -379,9 +403,11 @@
if (por2 == NULL)
#else
if (por2 == TAILQ_END(&block->sb_rules))
---- a/src/sbin/pfctl/pfctl_parser.c
-+++ b/src/sbin/pfctl/pfctl_parser.c
-@@ -580,7 +580,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/pfctl_parser.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/pfctl_parser.c
++++ freebsd-utils-jessie/src/sbin/pfctl/pfctl_parser.c
+@@ -580,7 +580,7 @@ print_status(struct pf_status *s, int op
s->src_nodes, "");
for (i = 0; i < SCNT_MAX; i++) {
printf(" %-25s %14lld ", pf_scounters[i],
@@ -390,7 +416,7 @@
(long long)s->scounters[i]);
#else
s->scounters[i]);
-@@ -606,7 +606,7 @@
+@@ -606,7 +606,7 @@ print_status(struct pf_status *s, int op
printf("Limit Counters\n");
for (i = 0; i < LCNT_MAX; i++) {
printf(" %-25s %14lld ", pf_lcounters[i],
@@ -399,7 +425,7 @@
(unsigned long long)s->lcounters[i]);
#else
s->lcounters[i]);
-@@ -655,7 +655,7 @@
+@@ -655,7 +655,7 @@ print_src_node(struct pf_src_node *sn, i
sn->expire, min, sec);
}
printf(", %llu pkts, %llu bytes",
@@ -408,7 +434,7 @@
(unsigned long long)(sn->packets[0] + sn->packets[1]),
(unsigned long long)(sn->bytes[0] + sn->bytes[1]));
#else
-@@ -1013,7 +1013,7 @@
+@@ -1013,7 +1013,7 @@ print_rule(struct pf_rule *r, const char
if (r->rtableid != -1)
printf(" rtable %u", r->rtableid);
if (r->divert.port) {
@@ -417,9 +443,11 @@
printf(" divert-to %u", ntohs(r->divert.port));
#else
if (PF_AZERO(&r->divert.addr, r->af)) {
---- a/src/sbin/pfctl/pfctl_qstats.c
-+++ b/src/sbin/pfctl/pfctl_qstats.c
-@@ -89,7 +89,7 @@
+Index: freebsd-utils-jessie/src/sbin/pfctl/pfctl_qstats.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/pfctl/pfctl_qstats.c
++++ freebsd-utils-jessie/src/sbin/pfctl/pfctl_qstats.c
+@@ -89,7 +89,7 @@ pfctl_show_altq(int dev, const char *ifa
struct pf_altq_node *root = NULL, *node;
int nodes, dotitle = (opts & PF_OPT_SHOWALL);
@@ -428,7 +456,7 @@
if (!altqsupport)
return (-1);
#endif
-@@ -118,7 +118,7 @@
+@@ -118,7 +118,7 @@ pfctl_show_altq(int dev, const char *ifa
for (node = root; node != NULL; node = node->next) {
if (iface != NULL && strcmp(node->altq.ifname, iface))
continue;
@@ -437,7 +465,7 @@
if (node->altq.local_flags & PFALTQ_FLAG_IF_REMOVED)
continue;
#endif
-@@ -161,7 +161,7 @@
+@@ -161,7 +161,7 @@ pfctl_update_qstats(int dev, struct pf_a
warn("DIOCGETALTQ");
return (-1);
}
@@ -446,7 +474,7 @@
if (pa.altq.qid > 0 &&
!(pa.altq.local_flags & PFALTQ_FLAG_IF_REMOVED)) {
#else
-@@ -184,7 +184,7 @@
+@@ -184,7 +184,7 @@ pfctl_update_qstats(int dev, struct pf_a
pfctl_insert_altq_node(root, pa.altq, qstats);
}
}
@@ -455,7 +483,7 @@
else if (pa.altq.local_flags & PFALTQ_FLAG_IF_REMOVED) {
memset(&qstats.data, 0, sizeof(qstats.data));
if ((node = pfctl_find_altq_node(*root, pa.altq.qname,
-@@ -303,7 +303,7 @@
+@@ -303,7 +303,7 @@ pfctl_print_altq_nodestat(int dev, const
if (a->altq.qid == 0)
return;
Modified: trunk/freebsd-utils/debian/patches/ppp_macros.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/ppp_macros.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/ppp_macros.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -1,6 +1,8 @@
---- a/src/usr.sbin/ppp/bundle.c
-+++ b/src/usr.sbin/ppp/bundle.c
-@@ -699,7 +699,7 @@
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/bundle.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/bundle.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/bundle.c
+@@ -699,7 +699,7 @@ bundle_Create(const char *prefix, int ty
static struct bundle bundle; /* there can be only one */
int enoentcount, err, minunit, maxunit;
const char *ifname;
@@ -9,7 +11,7 @@
int kldtried;
#endif
#if defined(TUNSIFMODE) || defined(TUNSLMODE) || defined(TUNSIFHEAD)
-@@ -720,7 +720,7 @@
+@@ -720,7 +720,7 @@ bundle_Create(const char *prefix, int ty
}
err = ENOENT;
enoentcount = 0;
@@ -18,7 +20,7 @@
kldtried = 0;
#endif
for (bundle.unit = minunit; bundle.unit != maxunit; bundle.unit++) {
-@@ -730,7 +730,7 @@
+@@ -730,7 +730,7 @@ bundle_Create(const char *prefix, int ty
if (bundle.dev.fd >= 0)
break;
else if (errno == ENXIO || errno == ENOENT) {
@@ -27,8 +29,10 @@
if (bundle.unit == minunit && !kldtried++) {
/*
* Attempt to load the tunnel interface KLD if it isn't loaded
---- a/src/usr.sbin/ppp/cbcp.c
-+++ b/src/usr.sbin/ppp/cbcp.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/cbcp.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/cbcp.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/cbcp.c
@@ -28,7 +28,7 @@
#include <sys/param.h>
@@ -38,10 +42,12 @@
#include <netinet/in.h>
#endif
#include <sys/un.h>
---- a/src/usr.sbin/ppp/chap_ms.c
-+++ b/src/usr.sbin/ppp/chap_ms.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/chap_ms.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/chap_ms.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/chap_ms.c
@@ -29,8 +29,9 @@
- * $FreeBSD$
+ * $FreeBSD: stable/10/usr.sbin/ppp/chap_ms.c 134789 2004-09-05 01:46:52Z brian $
*/
+#include <sys/param.h>
@@ -51,7 +57,7 @@
#include <openssl/des.h>
#include <sha.h>
#else
-@@ -187,7 +188,7 @@
+@@ -187,7 +188,7 @@ GenerateNTResponse(char *AuthenticatorCh
ChallengeResponse(Challenge, PasswordHash, Response);
}
@@ -60,8 +66,10 @@
#define LENGTH 20
static char *
SHA1_End(SHA_CTX *ctx, char *buf)
---- a/src/usr.sbin/ppp/defs.c
-+++ b/src/usr.sbin/ppp/defs.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/defs.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/defs.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/defs.c
@@ -39,16 +39,16 @@
#include <stdio.h>
#include <stdlib.h>
@@ -82,7 +90,7 @@
#include "id.h"
#include "log.h"
#endif
-@@ -411,7 +411,7 @@
+@@ -411,7 +411,7 @@ Concatinate(char *buf, size_t sz, int ar
}
}
@@ -91,10 +99,12 @@
int
loadmodules(int how, const char *module, ...)
{
---- a/src/usr.sbin/ppp/defs.h
-+++ b/src/usr.sbin/ppp/defs.h
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/defs.h
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/defs.h
++++ freebsd-utils-jessie/src/usr.sbin/ppp/defs.h
@@ -28,8 +28,10 @@
- * $FreeBSD$
+ * $FreeBSD: stable/10/usr.sbin/ppp/defs.h 252826 2013-07-05 19:26:01Z rmh $
*/
+#include <sys/param.h>
@@ -105,8 +115,10 @@
# define MODEM_LIST "/dev/cuau1\0/dev/cuau0" /* name of tty device */
#else
# ifdef __OpenBSD__
---- a/src/usr.sbin/ppp/id.c
-+++ b/src/usr.sbin/ppp/id.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/id.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/id.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/id.c
@@ -40,7 +40,7 @@
#include <stdio.h>
#include <string.h>
@@ -116,7 +128,7 @@
#include <sys/linker.h>
#endif
#include <unistd.h>
-@@ -262,7 +262,7 @@
+@@ -262,7 +262,7 @@ ID0kill(pid_t pid, int sig)
return result;
}
@@ -125,10 +137,12 @@
int
ID0kldload(const char *dev)
{
---- a/src/usr.sbin/ppp/id.h
-+++ b/src/usr.sbin/ppp/id.h
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/id.h
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/id.h
++++ freebsd-utils-jessie/src/usr.sbin/ppp/id.h
@@ -26,6 +26,8 @@
- * $FreeBSD$
+ * $FreeBSD: stable/10/usr.sbin/ppp/id.h 202192 2010-01-13 17:54:32Z ed $
*/
+#include <sys/param.h>
@@ -136,7 +150,7 @@
#ifndef NOSUID
struct utmpx;
struct sockaddr_un;
-@@ -46,7 +48,7 @@
+@@ -46,7 +48,7 @@ extern void ID0logout(const struct utmpx
extern int ID0bind_un(int, const struct sockaddr_un *);
extern int ID0connect_un(int, const struct sockaddr_un *);
extern int ID0kill(pid_t, int);
@@ -145,7 +159,7 @@
extern int ID0kldload(const char *);
#endif
#ifndef NONETGRAPH
-@@ -70,7 +72,7 @@
+@@ -70,7 +72,7 @@ extern int ID0NgMkSockNode(const char *,
#define ID0connect_un(s, n) \
connect(s, (const struct sockaddr *)(n), sizeof *(n))
#define ID0kill kill
@@ -154,8 +168,10 @@
#include <sys/param.h>
#include <sys/linker.h>
#define ID0kldload kldload
---- a/src/usr.sbin/ppp/iface.c
-+++ b/src/usr.sbin/ppp/iface.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/iface.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/iface.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/iface.c
@@ -31,7 +31,7 @@
#include <netinet/in.h>
#include <net/if.h>
@@ -165,7 +181,7 @@
#include <net/if_var.h>
#endif
#include <net/route.h>
-@@ -666,7 +666,7 @@
+@@ -666,7 +666,7 @@ iface_ChangeFlags(const char *ifname, in
close(s);
return 0;
}
@@ -174,7 +190,7 @@
new_flags = (ifrq.ifr_flags & 0xffff) | (ifrq.ifr_flagshigh << 16);
#else
new_flags = ifrq.ifr_flags & 0xffff;
-@@ -677,7 +677,7 @@
+@@ -677,7 +677,7 @@ iface_ChangeFlags(const char *ifname, in
else
new_flags &= ~flags;
ifrq.ifr_flags = new_flags & 0xffff;
@@ -183,8 +199,10 @@
ifrq.ifr_flagshigh = new_flags >> 16;
#endif
---- a/src/usr.sbin/ppp/lqr.c
-+++ b/src/usr.sbin/ppp/lqr.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/lqr.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/lqr.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/lqr.c
@@ -30,7 +30,7 @@
#include <sys/param.h>
@@ -194,8 +212,10 @@
#include <netinet/in.h>
#endif
#include <sys/un.h>
---- a/src/usr.sbin/ppp/tun.c
-+++ b/src/usr.sbin/ppp/tun.c
+Index: freebsd-utils-jessie/src/usr.sbin/ppp/tun.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/usr.sbin/ppp/tun.c
++++ freebsd-utils-jessie/src/usr.sbin/ppp/tun.c
@@ -29,7 +29,7 @@
#include <sys/param.h>
Modified: trunk/freebsd-utils/debian/patches/route_list.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/route_list.diff 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/patches/route_list.diff 2014-09-01 02:12:58 UTC (rev 5514)
@@ -2,16 +2,21 @@
When route is invoked with no arguments, fallback to "netstat -r"
to list existing routes.
---- a/src/sbin/route/route.c
-+++ b/src/sbin/route/route.c
-@@ -139,9 +139,19 @@
+Index: freebsd-utils-jessie/src/sbin/route/route.c
+===================================================================
+--- freebsd-utils-jessie.orig/src/sbin/route/route.c
++++ freebsd-utils-jessie/src/sbin/route/route.c
+@@ -138,10 +138,19 @@ static void usage(const char *) __dead2;
+ static void
usage(const char *cp)
{
- if (cp != NULL)
-+ {
+- if (cp != NULL)
++ if (cp != NULL) {
warnx("bad keyword: %s", cp);
- errx(EX_USAGE, "usage: route [-dnqtv] command [[modifiers] args]");
- /* NOTREACHED */
+- errx(EX_USAGE, "usage: route [-46dnqtv] command [[modifiers] args]");
+- /* NOTREACHED */
++ errx(EX_USAGE, "usage: route [-46dnqtv] command [[modifiers] args]");
++ /* NOTREACHED */
+ } else {
+ warnx("warning: route invoked with no arguments. fallback to \"netstat -r\"\n");
+
Modified: trunk/freebsd-utils/debian/rules
===================================================================
--- trunk/freebsd-utils/debian/rules 2014-09-01 02:11:53 UTC (rev 5513)
+++ trunk/freebsd-utils/debian/rules 2014-09-01 02:12:58 UTC (rev 5514)
@@ -37,9 +37,9 @@
revision := $(shell echo $(full_version) | sed -e 's/^[^+-]*//g')
SVN_BASE := https://svn0.us-west.freebsd.org/base
-SVN := $(SVN_BASE)/release/$(version).0
+#SVN := $(SVN_BASE)/release/$(version).0
#SVN := $(SVN_BASE)/releng/$(version)
-#SVN := $(SVN_BASE)/stable/$(major)
+SVN := $(SVN_BASE)/stable/$(major)
#SVN := $(SVN_BASE)/base/head
SOURCE = freebsd-utils
@@ -52,7 +52,7 @@
MAKEFLAGS=$(BSD_MAKEFLAGS) \
MAKEOBJDIRPREFIX=$(CURDIR)/obj-deb \
CFLAGS="$(CFLAGS)" \
- NO_WERROR=1 NOGCCERROR=1 NOSHARED=NO NO_SHARED=NO \
+ NO_WERROR=1 NOGCCERROR=1 NOSHARED=NO NO_SHARED=NO MK_TESTS=no\
DESTDIR="$(DESTDIR)" \
make -C src $(PMAKE_FLAGS)
PMAKE_UDEB = \
@@ -123,7 +123,7 @@
sbin/ifconfig etc/regdomain.xml \
sbin/route usr.bin/netstat usr.sbin/rpc.umntall \
usr.sbin/ppp usr.sbin/pppctl usr.sbin/arp usr.bin/mkuzip \
- sbin/ipfw contrib/pf sbin/pfctl usr.sbin/authpf sys/netpfil/pf \
+ sbin/ipfw contrib/pf sbin/pfctl sbin/pflogd usr.sbin/authpf sys/netpfil/pf \
sbin/umount sbin/mount_cd9660 \
sbin/mount_msdosfs \
sbin/mount_fusefs \
More information about the Glibc-bsd-commits
mailing list