mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
ba7c5acdb8
- Add pkg-message - Add filename remapping for tftp-hpa - Use PYTHON_CMD in scripts - Update master sites - Pass maintainership to submitter PR: ports/115301 Submitted by: Alex Deiter <tiamat at komi.mts.ru>
66 lines
1.5 KiB
Makefile
66 lines
1.5 KiB
Makefile
# New ports collection makefile for: ris
|
|
# Date created: 3 September 2005
|
|
# Whom: Alex Deiter <tiamat@komi.mts.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ris
|
|
PORTVERSION= 0.3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://oss.netfarm.it/guides/ \
|
|
http://m.komi.mtsnet.ru/FreeBSD/distfiles/
|
|
DISTNAME= ris-linux-${PORTVERSION}
|
|
|
|
MAINTAINER= tiamat@komi.mts.ru
|
|
COMMENT= OpenSource alternative to Microsoft Windows RIS
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/in.tftpd:${PORTSDIR}/ftp/tftp-hpa
|
|
|
|
USE_RC_SUBR= binlsrv.sh
|
|
USE_PYTHON= yes
|
|
NO_BUILD= yes
|
|
|
|
VARDIR= /var
|
|
PID_FILE?= ${VARDIR}/run/binlsrv.pid
|
|
LOG_FILE?= ${VARDIR}/log/binlsrv.log
|
|
DEVLIST_CACHE?= ${VARDIR}/db/devlist.cache
|
|
|
|
SCRIPTS= binlsrv.py decode.py \
|
|
fixloader.py hexdump.py \
|
|
infdump.py infparser.py \
|
|
modldr.py fixup-repository.sh
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
|
|
PID_FILE=${PID_FILE} \
|
|
LOG_FILE=${LOG_FILE} \
|
|
DEVLIST_CACHE=${DEVLIST_CACHE}
|
|
|
|
post-patch:
|
|
.for SCRIPT in ${SCRIPTS}
|
|
@${REINPLACE_CMD} -e \
|
|
's|@PYTHON_CMD@|${PYTHON_CMD}|; \
|
|
s|@PID_FILE@|${PID_FILE}|; \
|
|
s|@LOG_FILE@|${LOG_FILE}|; \
|
|
s|@DEVLIST_CACHE@|${DEVLIST_CACHE}|' \
|
|
${WRKSRC}/${SCRIPT}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
@${MKDIR} ${DATADIR}/inf
|
|
@${MKDIR} ${DATADIR}/sys
|
|
@${INSTALL_DATA} ${WRKSRC}/winnt.sif ${DATADIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/winnt-ris.sif ${DATADIR}
|
|
@${INSTALL_DATA} ${FILESDIR}/tftp.map ${DATADIR}
|
|
.for SCRIPT in ${SCRIPTS}
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${SCRIPT} ${DATADIR}
|
|
.endfor
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|