summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2013-03-21 06:53:36 +0000
committersbd <sbd@pkgsrc.org>2013-03-21 06:53:36 +0000
commit4de6d31770816de0e46ccae8775488122667c0fc (patch)
treee8bc32b1573c7e31be8d8e3d84c3b2f3d66040a2 /comms
parentcb8e9af0826fbc34b3749337fe9ad4277fe8ac74 (diff)
downloadpkgsrc-4de6d31770816de0e46ccae8775488122667c0fc.tar.gz
Linux fixes:
1) Install udev 60-openobex.rules config file. 2) Add Linux plist entries.
Diffstat (limited to 'comms')
-rw-r--r--comms/openobex/Makefile17
-rw-r--r--comms/openobex/PLIST.Linux3
2 files changed, 19 insertions, 1 deletions
diff --git a/comms/openobex/Makefile b/comms/openobex/Makefile
index 4b42aaa3c3c..a51fc68e38f 100644
--- a/comms/openobex/Makefile
+++ b/comms/openobex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2013/03/21 06:46:42 sbd Exp $
+# $NetBSD: Makefile,v 1.23 2013/03/21 06:53:36 sbd Exp $
#
DISTNAME= openobex-1.7-Source
@@ -18,5 +18,20 @@ USE_TOOLS+= cmake pkg-config
PKGCONFIG_OVERRIDE= openobex.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+EGDIR= share/examples/openobex
+
+.if ${OPSYS} == "Linux"
+INSTALLATION_DIRS+= ${EGDIR}
+MAKE_DIRS+= /etc/udev /etc/udev/rules.d
+CONF_FILES+= ${EGDIR}/60-openobex.rules \
+ /etc/udev/rules.d/60-openobex.rules
+
+post-install:
+ ${MV} ${DESTDIR}/lib/udev/rules.d/60-openobex.rules \
+ ${DESTDIR}${PREFIX}/${EGDIR}/60-openobex.rules
+.endif
+
.include "../../devel/libusb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/comms/openobex/PLIST.Linux b/comms/openobex/PLIST.Linux
new file mode 100644
index 00000000000..afe76ec958a
--- /dev/null
+++ b/comms/openobex/PLIST.Linux
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2013/03/21 06:53:37 sbd Exp $
+sbin/obex-check-device
+share/examples/openobex/60-openobex.rules