Contents of /trunk/extras/vzctl/vzctl-3.0.22-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1669 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1669 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/vzctl/vzctl-3.0.22-r1.smage2,v 1.1 2008/03/18 09:08:04 niro Exp $ |
2 | |
3 | PNAME="vzctl" |
4 | PVER="3.0.22" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="OpenVZ Virtual Environments control utility." |
11 | HOMEPAGE="http://openvz.org/" |
12 | |
13 | DEPEND=">= app-shells/bash-3 |
14 | >= sys-apps/gawk-3 |
15 | >= sys-apps/sed-4 |
16 | >= sys-apps/ed-0.5 |
17 | >= sys-apps/grep-2.5 |
18 | >= sys-apps/coreutils-6 |
19 | >= sys-apps/tar-1.16 |
20 | >= net-misc/rsync-2.6 |
21 | >= net-misc/openssh-4 |
22 | >= sys-apps/iproute2-2.6.20 |
23 | >= net-misc/iptables-1.3 |
24 | >= virtual/cron |
25 | >= app-admin/logrotate-3.7.1 |
26 | >= sys-fs/vzquota-3 |
27 | >= sys-apps/initscripts-0.4.6" |
28 | |
29 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
31 | |
32 | sminclude mtools |
33 | |
34 | SRC_URI=( |
35 | http://download.openvz.org/utils/${PNAME}/${PVER}/src/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/${PNAME}-3.0.18-magellan-3.patch |
38 | mirror://${PNAME}/${PNAME}-3.0.18-initddir.patch |
39 | mirror://${PNAME}/${PNAME}-${PVER}-magellan-as-default.patch |
40 | ) |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # adds dist-scripts for magellan linux |
48 | mpatch ${PNAME}-3.0.18-magellan-3.patch || die |
49 | |
50 | # fix initddir; we're using /etc/rc.d/init.d |
51 | mpatch ${PNAME}-3.0.18-initddir.patch || die |
52 | |
53 | # enable magellan as default template |
54 | mpatch ${PNAME}-${PVER}-magellan-as-default.patch || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | mconfigure \ |
62 | --localstatedir=/var \ |
63 | --enable-cron \ |
64 | --enable-udev \ |
65 | --enable-bashcomp \ |
66 | --enable-logrotate \ |
67 | || die |
68 | mmake || die |
69 | } |
70 | |
71 | src_install() |
72 | { |
73 | cd ${SRCDIR} |
74 | mmake DESTDIR=${BINDIR} install install-magellan || die |
75 | minstalldocs ChangeLog COPYING || die |
76 | mkeepdir /etc/vz/names || die |
77 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |