aboutsummaryrefslogtreecommitdiffstats
path: root/security/ruby-tcpwrap/Makefile
blob: e20f9f33fd86b115f59d54c48d0b69cd4e504fa7 (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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   tcpwrap
PORTVERSION=    0.6
PORTREVISION=   1
CATEGORIES= security ruby
MASTER_SITES=   http://shugo.net/archive/ruby-tcpwrap/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    TCP wrappers library for Ruby

LIB_DEPENDS=    libident.so:security/libident

OPTIONS_DEFINE= DOCS

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes

WRKSRC=     ${WRKDIR}/ruby-${PORTNAME}
CONFIGURE_ARGS= --with-libwrap-dir=/usr \
        --with-ident-dir="${LOCALBASE}"
MAKE_ARGS=  INSTALL_PROG="${INSTALL_PROGRAM}" \
        INSTALL_DATA="${INSTALL_DATA}"

INSTALL_TARGET= site-install

DOCS_EN=    README.en   doc/tcpwrap.html.en
DOCS_JA=    README.ja   doc/tcpwrap.html.ja

DEPRECATED= Upstream no longer active
EXPIRATION_DATE=    2017-01-28

post-install:
    ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/sample/echod.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
    ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS_EN} ${STAGEDIR}${RUBY_MODDOCDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS_JA} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/

.include <bsd.port.mk>