blob: 034a6f746eafe793403262684fa8179e39cb3db9 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# New ports collection makefile for: rancid-devel
# Date created: 20 March 2007 (based on net-mgmt/rancid)
# Whom: janos.mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= rancid
PORTVERSION= 2.3.2a6
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/
PKGNAMESUFFIX= -devel
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= Really Awesome New Cisco confIg Differ
BUILD_DEPENDS= expect:${PORTSDIR}/lang/expect
RUN_DEPENDS= expect:${PORTSDIR}/lang/expect \
${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
${SITE_PERL}/LockFile/Simple.pm:${PORTSDIR}/devel/p5-LockFile-Simple
USE_PERL5= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= \
--localstatedir=${PREFIX}/var/${PORTNAME}/ \
--bindir=${PREFIX}/libexec/${PORTNAME}/ \
--sysconfdir=${PREFIX}/etc/${PORTNAME}/
MAN1= alogin.1 blogin.1 cat5rancid.1 clogin.1 control_rancid.1 \
cssrancid.1 elogin.1 erancid.1 f10rancid.1 flogin.1 fnrancid.1 \
francid.1 hlogin.1 hrancid.1 htlogin.1 htrancid.1 jerancid.1 \
jlogin.1 jrancid.1 lg_intro.1 mrancid.1 nlogin.1 nrancid.1 \
nslogin.1 nsrancid.1 par.1 prancid.1 rancid-cvs.1 rancid-run.1 \
rancid.1 rancid_intro.1 rivlogin.1 rivrancid.1 tntlogin.1 \
tntrancid.1 xrancid.1 zrancid.1 arancid.1 brancid.1 \
drancid.1
MAN5= lg.conf.5 cloginrc.5 rancid.conf.5 router.db.5
OLDCONFIG_FILE1= bin/env
OLDCONFIG_FILE2= util/lg/lg.conf
NEWERCONFIG_FILES1= etc/rancid.conf
NEWERCONFIG_FILES2= etc/lg.conf
NEWCONFIG_FILES= rancid.conf lg.conf
pre-everything::
@ ${ECHO} "Make sure your rancid repository is quit before upgrading; disable rancid cron jobs"
post-install:
${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-cvs ${PREFIX}/bin
${LN} -s ${PREFIX}/libexec/${PORTNAME}/rancid-run ${PREFIX}/bin
@ ${SED} -e "s:%%INSTDIR%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
.if !defined(BATCH)
@ ${ECHO}
@ ${CAT} ${PKGMESSAGE}
@ ${ECHO}
.endif
.for file in ${NEWCONFIG_FILES}
@ if [ -f ${PREFIX}/etc/${PORTNAME}/${file} ] ; then \
${ECHO} "WARNING: *** new ${file} file is installed as ${PREFIX}/rancid/${file}.sample"; \
${ECHO} " : *** review ${file}.sample for new/deprecated switches or install in place ${file}"; \
fi
.endfor
@ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE1} ] ; then \
${ECHO} "WARNING: *** ${PREFIX}/rancid/${NEWERCONFIG_FILE1} has been replaced with "; \
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/rancid.conf. Merge from sample and old file "; \
fi
@ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE2} ] ; then \
${ECHO} "WARNING: *** ${PREFIX}/rancid/${NEWERCONFIG_FILE2} has been replaced with "; \
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/lg.conf. Merge from sample and old file "; \
fi
@ if [ -f ${PREFIX}/rancid/${NEWERCONFIG_FILE1} -o \
-f ${PREFIX}/rancid/${NEWERCONFIG_FILE2} ] ; then \
${ECHO} "WARNING: *** New CVS Repository will be stored ${PREFIX}/var/${PORTNAME}/ "; \
${ECHO} " : *** Copy the repository if you want to keep the history "; \
fi
@ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE1} ] ; then \
${ECHO} "WARNING: *** ${PREFIX}/rancid/${OLDCONFIG_FILE1} has been replaced with "; \
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/rancid.conf. Merge from sample and old file "; \
fi
@ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE2} ] ; then \
${ECHO} "WARNING: *** ${PREFIX}/rancid/${OLDCONFIG_FILE2} has been replaced with "; \
${ECHO} " : *** ${PREFIX}/etc/${PORTNAME}/lg.conf. Merge from sample and old file "; \
fi
@ if [ -f ${PREFIX}/rancid/${OLDCONFIG_FILE1} -o \
-f ${PREFIX}/rancid/${OLDCONFIG_FILE2} ] ; then \
${ECHO} "WARNING: *** New CVS Repository will be stored ${PREFIX}/rancid/var "; \
${ECHO} " : *** Copy the repository if you want to keep the history "; \
fi
.include <bsd.port.mk>
|