Import sysutils/p5-Ubic version 1.44
[dports.git] / sysutils / p5-Ubic / Makefile
1 # New ports collection makefile for:    p5-Ubic
2 # Date created:         21 Sep 2011
3 # Whom:                 Dmitry Yashin <dmitry@yashin.su>
4 #
5 # $FreeBSD: ports/sysutils/p5-Ubic/Makefile,v 1.6 2012/11/17 06:01:40 svnexp Exp $
6 #
7
8 PORTNAME=       Ubic
9 PORTVERSION=    1.44
10 CATEGORIES=     sysutils perl5
11 MASTER_SITES=   CPAN
12 MASTER_SITE_SUBDIR=     CPAN:MMCLERIC
13 PKGNAMEPREFIX=  p5-
14
15 MAINTAINER=     dmitry@yashin.su
16 COMMENT=        Flexible perl-based service manager
17
18 LICENSE=        ART10 GPLv1
19 LICENSE_COMB=   dual
20
21 BUILD_DEPENDS=  p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \
22                 p5-Config-Tiny>=0:${PORTSDIR}/devel/p5-Config-Tiny \
23                 p5-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple \
24                 p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
25                 p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils \
26                 p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate \
27                 p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny
28 RUN_DEPENDS:=   ${BUILD_DEPENDS}
29 TEST_DEPENDS=   p5-Test-Class>=0:${PORTSDIR}/devel/p5-Test-Class \
30                 p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal
31
32 PERL_CONFIGURE= yes
33 REINPLACE_ARGS= -i ''
34
35 MAN1=           ubic.1 \
36                 ubic-admin.1 \
37                 ubic-daemon.1 \
38                 ubic-periodic.1 \
39                 ubic-update.1 \
40                 ubic-watchdog.1
41 MAN3=           Ubic.3 \
42                 Ubic::AccessGuard.3 \
43                 Ubic::Admin::Setup.3 \
44                 Ubic::AtomicFile.3 \
45                 Ubic::Cmd.3 \
46                 Ubic::Cmd::Results.3 \
47                 Ubic::Credentials.3 \
48                 Ubic::Credentials::OS::MacOSX.3 \
49                 Ubic::Credentials::OS::POSIX.3 \
50                 Ubic::Credentials::OS::Windows.3 \
51                 Ubic::Daemon.3 \
52                 Ubic::Daemon::OS.3 \
53                 Ubic::Daemon::OS::Linux.3 \
54                 Ubic::Daemon::OS::POSIX.3 \
55                 Ubic::Daemon::PidState.3 \
56                 Ubic::Daemon::Status.3 \
57                 Ubic::Lockf.3 \
58                 Ubic::Lockf::Alarm.3 \
59                 Ubic::Logger.3 \
60                 Ubic::Manual::FAQ.3 \
61                 Ubic::Manual::Intro.3 \
62                 Ubic::Manual::Multiservices.3 \
63                 Ubic::Manual::Overview.3 \
64                 Ubic::Multiservice.3 \
65                 Ubic::Multiservice::Dir.3 \
66                 Ubic::Multiservice::Simple.3 \
67                 Ubic::Persistent.3 \
68                 Ubic::Ping.3 \
69                 Ubic::Ping::Service.3 \
70                 Ubic::PortMap.3 \
71                 Ubic::Result.3 \
72                 Ubic::Result::Class.3 \
73                 Ubic::Run.3 \
74                 Ubic::Service.3 \
75                 Ubic::Service::Common.3 \
76                 Ubic::Service::SimpleDaemon.3 \
77                 Ubic::Service::Skeleton.3 \
78                 Ubic::Service::Utils.3 \
79                 Ubic::ServiceLoader.3 \
80                 Ubic::ServiceLoader::Base.3 \
81                 Ubic::ServiceLoader::Default.3 \
82                 Ubic::ServiceLoader::Ext::ini.3 \
83                 Ubic::ServiceLoader::Ext::json.3 \
84                 Ubic::Settings.3 \
85                 Ubic::Settings::ConfigFile.3 \
86                 Ubic::SingletonLock.3 \
87                 Ubic::UA.3 \
88                 Ubic::Watchdog.3
89
90 .include <bsd.port.pre.mk>
91
92 post-patch:
93         @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
94                 ${WRKSRC}/lib/Ubic/Admin/Setup.pm ${WRKSRC}/lib/Ubic/Settings.pm
95
96 post-install:
97         ${CAT} ${PKGMESSAGE}
98
99 .include <bsd.port.post.mk>