Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 152776 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-cluster/heartbeat/heartbeat-2.0.7-r2.ebuild (-8 / +9 lines)
Lines 47-52 Link Here
47
	unpack ${A}
47
	unpack ${A}
48
	cd ${S}
48
	cd ${S}
49
	epatch ${FILESDIR}/${P}-update-resources-failcount.patch || die
49
	epatch ${FILESDIR}/${P}-update-resources-failcount.patch || die
50
	epatch ${FILESDIR}/${P}-ping_nodes.patch || die
50
}
51
}
51
52
52
src_compile() {
53
src_compile() {
Lines 56-64 Link Here
56
		--mandir=/usr/share/man \
57
		--mandir=/usr/share/man \
57
		--sysconfdir=/etc \
58
		--sysconfdir=/etc \
58
		--localstatedir=/var \
59
		--localstatedir=/var \
59
		--with-group-name=cluster \
60
		--with-group-name=haclient \
60
		--with-group-id=65 \
61
		--with-group-id=65 \
61
		--with-ccmuser-name=cluster \
62
		--with-ccmuser-name=hacluster \
62
		--with-ccmuser-id=65 \
63
		--with-ccmuser-id=65 \
63
		--enable-checkpointd \
64
		--enable-checkpointd \
64
		--enable-crm \
65
		--enable-crm \
Lines 69-81 Link Here
69
}
70
}
70
71
71
pkg_preinst() {
72
pkg_preinst() {
72
	# check for cluster group, if it doesn't exist make it
73
	# check for haclient group, if it doesn't exist make it
73
	if ! grep -q cluster.*65 /etc/group ; then
74
	if ! grep -q haclient.*65 /etc/group ; then
74
		groupadd -g 65 cluster
75
		groupadd -g 65 haclient
75
	fi
76
	fi
76
	# check for cluster user, if it doesn't exist make it
77
	# check for hacluster user, if it doesn't exist make it
77
	if ! grep -q cluster.*65 /etc/passwd ; then
78
	if ! grep -q hacluster.*65 /etc/passwd ; then
78
		useradd -u 65 -g cluster -s /dev/null -d /var/lib/heartbeat cluster
79
		useradd -u 65 -g haclient -s /dev/null -d /var/lib/heartbeat hacluster
79
	fi
80
	fi
80
}
81
}
81
82

Return to bug 152776