mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
eeb269e869
with libnotify devd-notifier parses all devd(8) messages from /var/run/devd.pipe with a configurable regular expression and notifies the user about creating and destroying of device nodes. WWW: https://github.com/funglaub/devd-notifier PR: ports/166572 Submitted by: Florian Unglaub <f.unglaub@googlemail.com>
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# New ports collection makefile for: devd-notifier
|
|
# Date created: March 30, 2012
|
|
# Whom: Florian Unglaub <f.unglaub@googlemail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= devd-notifier
|
|
PORTVERSION= 0.1
|
|
CATEGORIES= deskutils
|
|
MASTER_SITES= https://cloud.github.com/downloads/funglaub/devd-notifier/\
|
|
http://roladder.net/~flo/dist/
|
|
|
|
MAINTAINER= f.unglaub@googlemail.com
|
|
COMMENT= A daemon notifying the user about devd(8) events \
|
|
with libnotify
|
|
|
|
LICENSE= BSD
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= notify:${PORTSDIR}/devel/libnotify
|
|
|
|
MAN1= devd-notifier.1
|
|
PLIST_FILES= bin/devd-notifier
|
|
MANCOMPRESSED= yes
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} "You can build devd-notifier with your own config.h using the DEVD-NOTIFIER_CONF knob:"
|
|
@${ECHO_MSG} "make DEVD-NOTIFIER_CONF=/path/to/devd-notifier/config.h install clean"
|
|
|
|
post-extract:
|
|
.if defined(DEVD-NOTIFIER_CONF)
|
|
@${ECHO_MSG} "creating config.h from ${DEVD-NOTIFIER_CONF}"
|
|
@${CP} ${DEVD-NOTIFIER_CONF} ${WRKSRC}/config.h
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/config.mk
|
|
|
|
.include <bsd.port.mk>
|