aboutsummaryrefslogtreecommitdiffstats
path: root/net/obnc/Makefile
blob: 5374e626943950c4b1a131d08bf41b61a8882a2b (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
# New ports collection makefile for:    obnc
# Date created:         3 July 2001
# Whom:             dd
#
# $FreeBSD$
#

PORTNAME=   obnc
PORTVERSION=    20010703
PORTREVISION=   1
CATEGORIES= net ipv6
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        http://www.unixfreak.org/~dima/distfiles/
MASTER_SITE_SUBDIR= dd

MAINTAINER= dd@FreeBSD.org

MANSECTS=   1
MAN1=       nc.1
MANCOMPRESSED=  maybe

CFLAGS+=    -DIPSEC
MAKE_ENV=   LDADD="${LDADD} -lipsec"

# MAN page COMPression SUFFIX
.if !defined(NOMANCOMPRESS)
MANCOMPSUFFIX=  .gz
.else
MANCOMPSUFFIX=
.endif

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/bin/nc
.for __s in ${MANSECTS}
.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
    @${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
.endfor
.endfor

#
# Ports build/install stuff stops here.  Tarball creation stuff begins here.
#
.include <bsd.port.pre.mk>
CVS_CMD?=   cvs -z3
CVS_DATE=   Tue Jul  3 17:56:05 PDT 2001
CVS_SITES?= anoncvs@anoncvs3.usa.openbsd.org:/cvs \
        anoncvs@anoncvs1.ca.openbsd.org:/cvs
CVS_MODULE= src/usr.bin/nc

#
# CVS checkout stuff mostly stolen from security/openssh-askpass port by
# kris@freebsd.org
#
tarball:
    @${MKDIR} ${DISTDIR}/${PKGNAME} && \
    cd ${DISTDIR}/${PKGNAME}; \
    for CVS_SITE in ${CVS_SITES}; do \
        ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
        if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
            ${CVS_MODULE}; then \
            cd ${DISTDIR}; \
            ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
            ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
            ${MV} ${PKGNAME}/${CVS_MODULE} \
                ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
            ${TAR} -cz \
                -X ${FILESDIR}/tarignore \
                -f ${PKGNAME}.tar.gz \
                -C ${PKGNAME}/${CVS_MODULE:H} \
                ${PKGNAME}; \
            exit; \
        fi \
    done; \
    ${RMDIR} ${DISTDIR}/${PKGNAME}; \
    ${ECHO_MSG} ">> CVS checkout failed."; \
    exit 1;

.include <bsd.port.post.mk>
an> * Update to KOffice 1.4.0a.lofi2005-07-063-34/+57 * Add i18nized doc subdirs to kdehier and adjust i18n port plists accordingly.lofi2004-12-231-1/+0 * Update to KOffice 1.3.5lofi2004-12-142-4/+4 * Update to KDE 3.3.1lofi2004-11-083-4/+6 * Update to KDE 3.3lofi2004-08-31