blob: c43fba595a1b3bc09eb06b129816e4d6216a63b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Feature: trigger
# Usage: USES=trigger
# Valid ARGS: none
#
# Variables:
# TRIGGERS: list of triggers to package
#
# MAINTAINER= ports@FreeBSD.org
.if !defined(_INCLUDE_USES_TRIGGER_MK)
_INCLUDE_USES_TRIGGER_MK= yes
. if !empty(trigger_ARGS)
IGNORE= Incorrect 'USES+= trigger:${trigger_ARGS}' trigger takes no arguments
. endif
TRIGGERS?= ${PORTNAME}
. for t in ${TRIGGERS}
SUB_FILES+= ${t}.ucl
PLIST_FILES+= ${LOCALBASE}/share/pkg/triggers/$t.ucl
. endfor
_USES_install+= 601:trigger-post-install
trigger-post-install:
${MKDIR} ${STAGEDIR}${LOCALBASE}/share/pkg/triggers
. for t in ${TRIGGERS}
${INSTALL_DATA} ${WRKDIR}/$t.ucl ${STAGEDIR}${LOCALBASE}/share/pkg/triggers/
. endfor
.endif
|