Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / apcupsd / patches / patch-aj
blob4461fb0ac46c10ee3f8253e14725988c2d0c416d
1 $NetBSD: patch-aj,v 1.7 2007/06/15 19:05:57 bouyer Exp $
3 --- configure.orig      2010-09-02 16:23:39.000000000 +0200
4 +++ configure   2011-08-01 15:50:48.000000000 +0200
5 @@ -1542,9 +1542,6 @@
6        sysconfdir='/etc/apcupsd'
7     fi
8  
9 -   if test x$sbindir = x'${exec_prefix}/sbin' ; then
10 -      sbindir='/sbin'
11 -   fi
12  fi
14  # Make sure we can run config.sub.
15 @@ -3416,7 +3413,7 @@
18  APCACCESS=apcaccess
19 -SMTP=smtp
20 +SMTP=
21  APCTEST=apctest
24 @@ -10575,7 +10572,7 @@
25              echo "$as_me:$LINENO: result: Using Linux USB driver." >&5
26  echo "${ECHO_T}Using Linux USB driver." >&6
27              ;;
28 -         *-*-freebsd* | *-*-openbsd* | *-*-netbsd*)
29 +         *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-dragonfly*)
30              LIBUSBHIDINC="-I\$(topdir)/src/libusbhid"
31              LIBUSBHID=libusbhid
32              APCDRVLIBS="$APCDRVLIBS \$(topdir)/src/libusbhid/libusbhid.a"
33 @@ -12200,7 +12197,7 @@
34  elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
35  then
36     DISTNAME=freebsd
37 -elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
38 +elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD || test $HAVE_UNAME=yes -a x`uname -s` = xDragonFly
39  then
40     DISTNAME=netbsd
41  elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
42 @@ -12331,7 +12328,7 @@
43        platforms/debian/apcupsd \
44        platforms/debian/ups-monitor"
45     ;;
46 -freebsd)
47 +freebsd|dragonfly)
48     DISTVER=`uname -a |awk '{print $3}'`
49     SERIALDEV=/dev/cuaa0
50     nologdir=/var/run
51 @@ -12365,7 +12362,8 @@
52     PTHREAD_LFLAGS=""
53     LDFLAGS="$LDFLAGS -pthread"
54     DFILES="\
55 -      platforms/netbsd/apcupsd"
56 +      platforms/netbsd/apcupsd \
57 +      platforms/netbsd/apccontrol"
58     ;;
59  openbsd)
60     DISTVER=`uname -a |awk '{print $3}'`