Contents of /smage/trunk/extras/drbd-utils/drbd-utils-9.13.1-r1.smage2
Parent Directory | Revision Log
Revision 14341 -
(show annotations)
(download)
Thu Jul 9 09:01:01 2020 UTC (4 years, 2 months ago) by niro
File size: 2340 byte(s)
Thu Jul 9 09:01:01 2020 UTC (4 years, 2 months ago) by niro
File size: 2340 byte(s)
auto added: ver bump to 9.13.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="drbd-utils" |
4 | PVER="9.13.1" |
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 | var/lib/drbd" |
30 | sminclude udev systemd alx-split |
31 | |
32 | SRC_URI=( |
33 | https://www.linbit.com/downloads/drbd/utils/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | ) |
36 | |
37 | #UP2DATE="updatecmd https://www.linbit.com/downloads/drbd/utils/ | highesttarball gz" |
38 | UP2DATE="updatecmd https://www.linbit.com/linbit-software-download-page-for-linstor-and-drbd-linux-driver/ | grep ${PNAME}- | highesttarball gz" |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | cd ${SRCDIR} |
44 | |
45 | # from gentoo: respect multilib |
46 | sed -i -e "s:/lib/:/$(mlibdir)/:g" Makefile.in scripts/Makefile.in scripts/global_common.conf scripts/drbd.conf.example || die |
47 | sed -e "s:@prefix@/lib:@prefix@/$(mlibdir):" -e "s:(DESTDIR)/lib:(DESTDIR)/$(mlibdir):" -i user/*/Makefile.in || die |
48 | |
49 | # from gentoo: disable the survey participation |
50 | sed -i '/usage-count/ s/yes/no/' scripts/global_common.conf || die |
51 | |
52 | mautoreconf || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | mconfigure \ |
60 | --localstatedir=/var \ |
61 | --with-distro=generic \ |
62 | --without-bashcompletion \ |
63 | --with-initscripttype=systemd \ |
64 | --with-systemdunitdir=$(mget-systemd-unit-dir) \ |
65 | --with-tmpfilesdir=$(mget-systemd-tmpfilesdir) \ |
66 | --with-udev \ |
67 | --without-rgmanager \ |
68 | --without-pacemaker \ |
69 | --without-heartbeat \ |
70 | --without-83support \ |
71 | --without-xen \ |
72 | --with-prebuiltman \ |
73 | || die |
74 | |
75 | mmake || die |
76 | } |
77 | |
78 | alx_generic_src_install() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | mmake DESTDIR=${BINDIR} install || die |
83 | |
84 | # move hardcoded lib |
85 | mv ${BINDIR}/$(mlibdir)/drbd/* ${BINDIR}/usr/$(mlibdir)/drbd/ || die |
86 | rm -r ${BINDIR}/$(mlibdir) || die |
87 | |
88 | # remove runtime created dirs |
89 | rm -r ${BINDIR}/var/lock || die |
90 | rm -r ${BINDIR}/var/run || die |
91 | |
92 | minstalldocs COPYING ChangeLog README* scripts/drbd.conf.example || die |
93 | } |
94 | |
95 | preinstall_drbd-utils() |
96 | { |
97 | # always keep this files even if the user edited them |
98 | add_conf_prot_ignore /etc/drbd.d/global_common.conf |
99 | } |