~ubuntu-branches/ubuntu/precise/lxc/precise-updates

« back to all changes in this revision

Viewing changes to .pc/0060-lxc-shutdown/lxc.spec.in

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2012-03-21 08:20:06 UTC
  • Revision ID: package-import@ubuntu.com-20120321082006-bsepg8w3z7qb79xt
Tags: 0.7.5-3ubuntu41
* add lxc-shutdown command:
  - 0060-lxc-shutdown: add the command to the source
  - debian/lxc.upstart: use lxc-shutdown to shut down containers cleanly
  - debian/lxc.default: add LXC_SHUTDOWN_TIMEOUT (default 120s)
* support per-container apparmor policies:  (LP: #953453)
  - 0061-lxc-start-apparmor: add lxc.aa_profile to config file.  If not
    specified, lxc-default profile is used for container.  Otherwise, the
    specified profile is used.
    Note that per-container profiles must be named 'lxc-*'.
  - split debian/lxc-default.apparmor from debian/lxc.apparmor.
  - have /etc/apparmor.d/lxc-containers #include /etc/apparmor.d/lxc/*
  - debian/lxc.postinst: load the new lxc-containers profiles
  - debian/lxc.postrm: remove lxc-containers profiles
  - debian/rules: make new etc/apparmor.d/lxc dir and copy lxc-default into it
  - debian/control: add libapparmor-dev to build-depends
  - debian/lxc.upstart: load apparmor per-container policies at pre-start.
* debian/lxc.apparmor: insert the stricter mount rules for lxc-start
  (LP: #645625) (LP: #942934)
* debian/local/lxc-start-ephemeral: re-enable aufs option (LP: #960262)
* replace upstream lxc-wait with our own bash script (LP: #951181)
  - debian/local/lxc-wait: the script
  - debian/rules: copy the script into place
* 0062-templates-relative-paths: update templates to use relative paths,
  and make lxc-start always accept /var/lib/lxc/CN/rootfs as target prefix,
  to make lvm containers work.  (LP: #960860)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# lxc: linux Container library
 
3
#
 
4
# (C) Copyright IBM Corp. 2007, 2008
 
5
#
 
6
# Authors:
 
7
# Daniel Lezcano <dlezcano at fr.ibm.com>
 
8
#
 
9
# This library is free software; you can redistribute it and/or
 
10
# modify it under the terms of the GNU Lesser General Public
 
11
# License as published by the Free Software Foundation; either
 
12
# version 2.1 of the License, or (at your option) any later version.
 
13
#
 
14
# This library is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
# Lesser General Public License for more details.
 
18
#
 
19
# You should have received a copy of the GNU Lesser General Public
 
20
# License along with this library; if not, write to the Free Software
 
21
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
22
 
 
23
Name: @PACKAGE@
 
24
Version: @VERSION@
 
25
Release: 1
 
26
URL: http://lxc.sourceforge.net
 
27
Source: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
 
28
Summary: %{name} : Linux Container
 
29
Group: Applications/System
 
30
License: LGPL
 
31
BuildRoot: %{_tmppath}/%{name}-%{version}-build
 
32
Requires: libcap
 
33
BuildRequires: libcap libcap-devel docbook-utils
 
34
 
 
35
%description
 
36
 
 
37
The package "%{name}" provides the command lines to create and manage
 
38
containers.  It contains a full featured container with the isolation
 
39
/ virtualization of the pids, the ipc, the utsname, the mount points,
 
40
/proc, /sys, the network and it takes into account the control groups.
 
41
It is very light, flexible, and provides a set of tools around the
 
42
container like the monitoring with asynchronous events notification,
 
43
or the freeze of the container. This package is useful to create
 
44
Virtual Private Server, or to run isolated applications like bash or
 
45
sshd.
 
46
 
 
47
%package devel
 
48
Release: 1
 
49
Summary: development library for %{name}
 
50
Group: Development/Libraries
 
51
 
 
52
%description devel
 
53
The %{name}-devel package contains header files and library needed for
 
54
development of the linux containers.
 
55
 
 
56
%prep
 
57
%setup
 
58
%build
 
59
test "%{ksrc}" != "none" && args="--with-linuxdir=%{ksrc}"
 
60
PATH=$PATH:/usr/sbin:/sbin %configure $args
 
61
make %{?_smp_mflags}
 
62
 
 
63
%install
 
64
%makeinstall
 
65
 
 
66
find $RPM_BUILD_ROOT -type f -name '*.la' -exec rm -f {} ';'  
 
67
 
 
68
%clean
 
69
rm -rf %{buildroot}
 
70
 
 
71
%post
 
72
 
 
73
%files
 
74
%defattr(-,root,root)
 
75
%{_libdir}/*.so*
 
76
%{_libdir}/%{name}
 
77
%attr(4555,root,root) %{_libdir}/%{name}/lxc-init
 
78
%{_bindir}/*
 
79
%attr(4111,root,root) %{_bindir}/lxc-attach
 
80
%attr(4111,root,root) %{_bindir}/lxc-create
 
81
%attr(4111,root,root) %{_bindir}/lxc-clone
 
82
%attr(4111,root,root) %{_bindir}/lxc-start
 
83
%attr(4111,root,root) %{_bindir}/lxc-netstat
 
84
%attr(4111,root,root) %{_bindir}/lxc-unshare
 
85
%attr(4111,root,root) %{_bindir}/lxc-execute
 
86
%attr(4111,root,root) %{_bindir}/lxc-checkpoint
 
87
%attr(4111,root,root) %{_bindir}/lxc-restart
 
88
%{_mandir}/*
 
89
%{_datadir}/pkgconfig/*
 
90
%{_datadir}/doc/*
 
91
 
 
92
%files devel
 
93
%defattr(-,root,root)
 
94
%{_includedir}/%{name}/*
 
95
%{_libdir}/*.so.*
 
96
 
 
97
%changelog
 
98
 
 
99
* Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2
 
100
- set attribute for installed files
 
101
- fix libraries installation
 
102
-
 
103
 
 
104
* Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1
 
105
- Removed capability setting, let the user to do that through "lxc-setcap"
 
106
 
 
107
* Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
 
108
- Added more capabilities to the executables
 
109
 
 
110
* Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
 
111
- Reduced spec file
 
112
 
 
113
* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
 
114
- Initial RPM release.
 
115
 
 
116
# Local variables:
 
117
# mode: shell-script
 
118
# sh-shell: rpm
 
119
# end: