# New ports collection makefile for: watchdog_comar # Date created: 2003 Dec 24 # Whom: @BABOLO <.@babolo.ru> # # $FreeBSD$ # $Id: Makefile,v 1.3 2013/10/12 11:20:34 babolo Exp $ # PORTNAME= watchdog_comar PORTVERSION= 1.32 CATEGORIES= sysutils MASTER_SITES= http://www.comar.ru/watchdog/archive/ DISTNAME= watchdog_daemon_src-${PORTVERSION} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} watchdog_doc_1.3${EXTRACT_SUFX} MAINTAINER= .@babolo.ru COMMENT= COMAR's watchdog daemon WITHOUT_LOCAL_PATCHDIR=yes NO_STAGE= yes post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_MAN} ${WRKDIR}/watchdog_doc/* ${DOCSDIR} .endif @ ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ < ${FILESDIR}/watchdog_comar.sh \ > ${PREFIX}/etc/rc.d/watchdog_comar.sh.orig ;\ ${CHOWN} root:wheel ${PREFIX}/etc/rc.d/watchdog_comar.sh.orig ;\ ${CHMOD} 644 ${PREFIX}/etc/rc.d/watchdog_comar.sh.orig ;\ if [ ! -e ${PREFIX}/etc/rc.d/watchdog_comar.sh ]; then\ ${CP} ${PREFIX}/etc/rc.d/watchdog_comar.sh.orig ${PREFIX}/etc/rc.d/watchdog_comar.sh ;\ ${CHMOD} 554 ${PREFIX}/etc/rc.d/watchdog_comar.sh ;\ ${CHOWN} root:dialer ${PREFIX}/etc/rc.d/watchdog_comar.sh ;\ fi ;\ .include