Magellan Linux

Contents of /smage/trunk/extras/drbd-utils/drbd-utils-9.10.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13215 - (show annotations) (download)
Thu Jul 4 14:36:59 2019 UTC (4 years, 9 months ago) by niro
File size: 2043 byte(s)
auto added: ver bump to 9.10.0-r1
1 # $Id$
2
3 PNAME="drbd-utils"
4 PVER="9.10.0"
5 PBUILD="r1"
6
7 PCAT="sys-fs"
8
9 DESCRIPTION="Userland tools for Distributed Replicated Block Device."
10 HOMEPAGE="https://www.drbd.org/"
11
12 DEPEND=">= app-shells/bash-4
13 >= dev-lang/perl-5"
14
15 SDEPEND=">= dev-libs/libxslt-1.1
16 >= app-text/docbook-xsl-stylesheets-1.76
17 >= virtual/sed
18 >= dev-libs/libxslt-dev-1.1"
19
20 SRCFILE="${PNAME}-${PVER}.tar.gz"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 ALX_PKG_KEEP="etc
24 usr/$(mlibdir)/drbd
25 usr/lib/systemd
26 usr/lib/tmpfiles.d
27 usr/lib/udev
28 usr/sbin"
29 sminclude udev systemd alx-split
30
31 SRC_URI=(
32 https://www.linbit.com/downloads/drbd/utils/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 )
35
36 UP2DATE="updatecmd https://www.linbit.com/downloads/drbd/utils/ | highesttarball gz"
37
38 src_prepare()
39 {
40 munpack ${SRCFILE} || die
41 cd ${SRCDIR}
42
43 # from gentoo: respect multilib
44 sed -i -e "s:/lib/:/$(mlibdir)/:g" Makefile.in scripts/Makefile.in scripts/global_common.conf scripts/drbd.conf.example || die
45 sed -e "s:@prefix@/lib:@prefix@/$(mlibdir):" -e "s:(DESTDIR)/lib:(DESTDIR)/$(mlibdir):" -i user/*/Makefile.in || die
46
47 # from gentoo: disable the survey participation
48 sed -i '/usage-count/ s/yes/no/' scripts/global_common.conf || die
49
50 mautoreconf || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 mconfigure \
58 --localstatedir=/var \
59 --with-distro=generic \
60 --without-bashcompletion \
61 --with-initscripttype=systemd \
62 --with-systemdunitdir=$(mget-systemd-unit-dir) \
63 --with-tmpfilesdir=$(mget-systemd-tmpfilesdir) \
64 --with-udev \
65 --without-rgmanager \
66 --without-pacemaker \
67 --without-heartbeat \
68 --without-83support \
69 --without-xen \
70 --with-prebuiltman \
71 || die
72
73 mmake || die
74 }
75
76 alx_generic_src_install()
77 {
78 cd ${SRCDIR}
79
80 mmake DESTDIR=${BINDIR} install || die
81
82 # move hardcoded lib
83 mv ${BINDIR}/$(mlibdir)/drbd/* ${BINDIR}/usr/$(mlibdir)/drbd/ || die
84 rm -r ${BINDIR}/$(mlibdir) || die
85
86 # remove runtime created dirs
87 rm -r ${BINDIR}/var/lock || die
88 rm -r ${BINDIR}/var/run || die
89
90 minstalldocs COPYING ChangeLog README* scripts/drbd.conf.example || die
91 }