blob: 2d397063ca3e565f042d944f0eee55e7e8d40756 (
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
|
# Created by: Tomoyuki Sakurai <cherry@trombik.org>
# $FreeBSD$
PORTNAME= facter
PORTVERSION= 2.4.4
CATEGORIES= sysutils rubygems
MASTER_SITES= RG \
http://downloads.puppetlabs.com/facter/
MAINTAINER= robak@FreeBSD.org
COMMENT= Cross-platform Ruby library for retrieving facts from OS
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_RUBY= yes
USES= gem:autoplist
PLIST_FILES= bin/facter
OPTIONS_DEFINE= ZFS_FACTS
ZFS_FACTS_DESC= Generate ZFS-related facts
OPTIONS_DEFAULT= ZFS_FACTS
.include <bsd.port.pre.mk>
# Restrict dmidecode dependency to Intel based systems
.if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64"
RUN_DEPENDS+= dmidecode:sysutils/dmidecode
.endif
post-patch-ZFS_FACTS-off:
@${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zfs_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec
@${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zpool_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec
.include <bsd.port.post.mk>
|