blob: 706ce89242a957487f7924587873d5ec9698871b (
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
30
|
# New ports collection makefile for: upsd
# Version required: 2.0.1.6
# Date created: 11 Jul 1996
# Whom: alexis
#
# $Id$
#
DISTNAME= upsd-2.0.1.6
PKGNAME= upsd-2.0
CATEGORIES= sysutils
MASTER_SITES= ftp://www.ww.net/pub/wildwind/upsd/ \
http://www.cre8tivegroup.com/ \
ftp://ftp.sw.ru/pub/unix/upsd/
MAINTAINER= alexis@ww.net
WRKSRC= ${WRKDIR}/upsd-2.0
pre-build:
@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h
post-install:
if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
${FILESDIR}/upsd.conf ${PREFIX}/etc/upsd.conf; \
fi
.include <bsd.port.mk>
|