|
Lines 35-42
Link Here
|
| 35 |
PLIST_SUB+= KMODDIR=${KMODDIR} |
35 |
PLIST_SUB+= KMODDIR=${KMODDIR} |
| 36 |
MAKE_ENV+= KMODDIR=${KMODDIR} DATADIR=${DATADIR} SYSDIR="${SRC_BASE}/sys" |
36 |
MAKE_ENV+= KMODDIR=${KMODDIR} DATADIR=${DATADIR} SYSDIR="${SRC_BASE}/sys" |
| 37 |
|
37 |
|
| 38 |
CONFDIR= ${PREFIX}/etc/iet |
38 |
IET_CONF_FILES= ietd.conf initiators.allow initiators.deny targets.allow |
| 39 |
CONF_FILES= ietd.conf initiators.allow initiators.deny targets.allow |
|
|
| 40 |
|
39 |
|
| 41 |
.if !exists(${SRC_BASE}/sys/Makefile) |
40 |
.if !exists(${SRC_BASE}/sys/Makefile) |
| 42 |
IGNORE= requires kernel sources to build |
41 |
IGNORE= requires kernel sources to build |
|
Lines 49-59
Link Here
|
| 49 |
.endif |
48 |
.endif |
| 50 |
|
49 |
|
| 51 |
pre-install: |
50 |
pre-install: |
| 52 |
${MKDIR} ${DATADIR} ${KMODDIR} ${CONFDIR} |
51 |
${MKDIR} ${DATADIR} ${KMODDIR} ${ETCDIR} |
| 53 |
|
52 |
|
| 54 |
post-install: |
53 |
post-install: |
| 55 |
.for f in ${CONF_FILES} |
54 |
.for f in ${IET_CONF_FILES} |
| 56 |
@[ -f ${CONFDIR}/${f} ] || ${CP} ${DATADIR}/${f} ${CONFDIR}/ |
55 |
@[ -f ${ETCDIR}/${f} ] || ${CP} ${DATADIR}/${f} ${ETCDIR}/ |
| 57 |
.endfor |
56 |
.endfor |
| 58 |
|
57 |
|
| 59 |
.include <bsd.port.post.mk> |
58 |
.include <bsd.port.post.mk> |