diff --git a/.docker-storage-setup.metadata b/.docker-storage-setup.metadata new file mode 100644 index 0000000..11c07b4 --- /dev/null +++ b/.docker-storage-setup.metadata @@ -0,0 +1 @@ +31c33f3b5907e03d390ed4384b5d42ccffbd2658 SOURCES/0.0.3.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ead0940 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/0.0.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/docker-storage-setup.spec b/SPECS/docker-storage-setup.spec new file mode 100644 index 0000000..21f3294 --- /dev/null +++ b/SPECS/docker-storage-setup.spec @@ -0,0 +1,70 @@ +Name: docker-storage-setup +Version: 0.0.3 +Release: 1%{?dist} +Summary: A simple service to setup docker storage devices + +License: ASL 2.0 +URL: http://github.com/projectatomic/docker-storage-setup/ +Source0: https://github.com/projectatomic/docker-storage-setup/archive/%{version}.tar.gz + +BuildArch: noarch +BuildRequires: pkgconfig(systemd) + +Requires: lvm2 +Requires: cloud-utils-growpart +Requires: systemd-units +# systemd_requires macro doesn't work here because the srpm build fails? +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%description +This is a simple service to divide available storage between +the OS and docker using LVM devices. + +%prep +%setup + +%build + +%install +install -d %{buildroot}%{_bindir} +install -p -m 755 docker-storage-setup.sh %{buildroot}%{_bindir}/docker-storage-setup +install -d %{buildroot}%{_unitdir} +install -p -m 644 docker-storage-setup.service %{buildroot}%{_unitdir} +# install -d %{buildroot}%{_sysconfdir}/sysconfig/ +# install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/docker-storage-setup + +%post +%systemd_post %{name}.service + +%preun +%systemd_preun %{name}.service + +%postun +%systemd_postun %{name}.service + +%files +%{_unitdir}/docker-storage-setup.service +%{_bindir}/docker-storage-setup +# %{_sysconfdir}/sysconfig/docker-storage-setup + +%changelog +* Tue Oct 28 2014 Andy Grimm - 0.0.3-1 +- Resolves: rhbz#1156656 + +* Thu Oct 23 2014 Andy Grimm - 0.0.2-1 +- version bump, fix default use case + +* Wed Oct 22 2014 Colin Walters - 0.0.1-4 +- Strip trailing whitespace + +* Wed Oct 22 2014 Colin Walters - 0.0.1-3 +- Fix service ordering + +* Thu Oct 16 2014 Andy Grimm - 0.0.1-1 +- Fix rpm scripts + +* Thu Oct 16 2014 Andy Grimm - 0.0.1-1 +- Initial build +