[rootfs-resize/f17] Initial commit.

Chris Tyler ctyler at fedoraproject.org
Tue Jun 12 16:50:53 UTC 2012


commit 164fbfc202cf77fbfb8bfe4e8093e77bf8b52971
Author: Chris Tyler <chris at tylers.info>
Date:   Tue Jun 12 12:49:41 2012 -0400

    Initial commit.

 .gitignore         |    1 +
 rootfs-resize.spec |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c63f37d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rootfs-resize-0.3.tgz
diff --git a/rootfs-resize.spec b/rootfs-resize.spec
new file mode 100644
index 0000000..7268f1a
--- /dev/null
+++ b/rootfs-resize.spec
@@ -0,0 +1,79 @@
+Name:           rootfs-resize
+Version:        0.3
+Release:        2%{?dist}
+Summary:        Root partition re-sizing service for SD cards
+
+License:        GPLv2+
+URL:            http://zenit.senecac.on.ca/wiki/index.php/Fedora_ARM_Secondary_Architecture/rootfs-resize
+Source0:        http://scotland.proximity.on.ca/fedora-arm/%{name}/%{name}-%{version}.tgz
+
+# Note: This package is intended for use on ARM development boards,
+# but may be useful on other systems that run from SD cards.
+#
+# It is noarch because it does not contain binary code. It
+# appears that ExclusiveArch cannot be used with BuildArch.
+BuildArch:      noarch
+
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+Requires:       bash systemd-units coreutils grep util-linux e2fsprogs
+
+%description
+rootfs-resize is a root partition and file system re-sizing service for
+systems running from SD cards.
+
+%prep
+%setup -q
+
+%build
+echo "Nothing to do for build"
+
+%install
+mkdir -p %{buildroot}/%{_unitdir}
+cp -p %{name}.service %{buildroot}/%{_unitdir}
+mkdir -p %{buildroot}/%{_bindir}
+cp -p %{name} %{buildroot}/%{_bindir}
+
+%files
+%doc COPYING README
+%ghost %attr(0644,root,root) /.rootfs-repartition
+%ghost %attr(0644,root,root) /.rootfs-resize
+%ghost %attr(0644,root,root) /.nofsresize
+%defattr(-,root,root,-)
+%{_unitdir}/*
+%{_bindir}/*
+
+%post
+if [ $1 -eq 1 ] ; then
+    # Initial installation
+    /bin/systemctl enable %{name}.service >/dev/null 2>&1 || :
+fi
+
+%preun
+if [ $1 -eq 0 ] ; then
+    # Package removal, not upgrade
+    /bin/systemctl --no-reload disable %{name}.service > /dev/null 2>&1 || :
+    /bin/systemctl stop %{name}.service > /dev/null 2>&1 || :
+fi
+
+%postun
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+    # Package upgrade, not uninstall
+    /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
+fi
+
+%changelog
+* Tue Jun 12 2012 Chris Tyler <chris at tylers.info> - 0.3-2
+- Script header version number fixup
+
+* Tue Jun 12 2012 Chris Tyler <ctyler at fedoraproject.org> - 0.3-1
+- GPL header
+
+* Tue Jun 12 2012 Chris Tyler <ctyler at fedoraproject.org> - 0.2-1
+- Fixups for review (script headers, specfile)
+
+* Thu Jun 08 2012 Chris Tyler <ctyler at fedoraproject.org> - 0.1-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..89f7be1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+79f79cd736275e7a1f5cd4454adef101  rootfs-resize-0.3.tgz


More information about the scm-commits mailing list