[ledctl] initial commit
Jiří Moskovčák
jmoskovc at fedoraproject.org
Mon Jan 10 20:44:08 UTC 2011
commit e988ae6124d8cd1cc1ebb669d78d0132a3a873a1
Author: Jiri Moskovcak <jmoskovc at redhat.com>
Date: Mon Jan 10 21:43:32 2011 +0100
initial commit
- added spec, few patches and uploaded source tarball
.gitignore | 1 +
ledctl.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
ledctl_cflags.patch | 10 ++++++++++
ledctl_execman.patch | 19 +++++++++++++++++++
makefile.patch | 11 +++++++++++
sources | 1 +
6 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1789819 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ledctl.tgz
diff --git a/ledctl.spec b/ledctl.spec
new file mode 100644
index 0000000..c2f3050
--- /dev/null
+++ b/ledctl.spec
@@ -0,0 +1,49 @@
+Summary: Enclosure LED Utilities
+Name: ledctl
+Version: 0.1
+Release: 1
+License: GPLv2+
+Group: Applications/System
+# intel doesn't provide any upstream URL yet
+URL: http://www.intel.com/
+Source: ledctl.tgz
+Patch0: makefile.patch
+Patch1: ledctl_execman.patch
+Patch2: ledctl_cflags.patch
+BuildRequires: perl
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+The ledctl is user space application design to control LED associated
+with each slot in an enclosure or a drive bay. There are two types of
+system: 2-LED system (Activity LED, Status LED) and 3-LED system
+(Activity LED, Locate LED, Fail LED). User must have root privileges to
+use this application.
+
+%prep
+%setup -q -n ledctl
+%patch0 -p1 -b .makefile
+%patch1 -p1 -b .execman
+%patch2 -p1 -b .cflags
+
+%build
+# can't use smp_flags because -j4 makes the build fail
+make CFLAGS="$RPM_OPT_FLAGS --std=c99"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING
+%{_bindir}/ledctl
+%{_sbindir}/ledmon
+%{_mandir}/*/*
+
+%changelog
+* Fri Jan 07 2011 Jiri Moskovcak <jmoskovc at redhat.com> 0.1-1
+- initial release
\ No newline at end of file
diff --git a/ledctl_cflags.patch b/ledctl_cflags.patch
new file mode 100644
index 0000000..00ae3d5
--- /dev/null
+++ b/ledctl_cflags.patch
@@ -0,0 +1,10 @@
+--- ledctl_man/src/Makefile 2010-03-23 14:40:33.000000000 +0100
++++ ledctl/src/Makefile 2011-01-10 15:43:06.066168015 +0100
+@@ -54,7 +54,6 @@
+ $(OUTDIR)/ledctl.o \
+ $(OBJECTS)
+
+-CFLAGS=-O0 -g -Wall -std=c99
+ DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE
+ INCFLAGS=-I../config
+ LDFLAGS=-O0 -g $(DEFFLAGS)
diff --git a/ledctl_execman.patch b/ledctl_execman.patch
new file mode 100644
index 0000000..e319bcf
--- /dev/null
+++ b/ledctl_execman.patch
@@ -0,0 +1,19 @@
+--- ledctl/doc/Makefile 2010-03-23 14:40:33.000000000 +0100
++++ ledctl_man/doc/Makefile 2011-01-08 22:25:19.038822820 +0100
+@@ -37,12 +37,12 @@
+
+ ledctl.8.gz: ledctl.pod
+ pod2man -r "LEDCTL Version 0.1" -d $(RELEASE_DATE) \
+- -s 8 -n ledctl -c "Intel(R) Enclosure LED Control Application" $< | gzip -9f > $@
++ -s 8 -n ledctl -c "Intel(R) Enclosure LED Control Application" $< | gzip -9f > $@
+
+ install: all
+- install -D ./ledmon.8.gz $(MAN8_INSTDIR)/ledmon.8.gz
+- install -D ./ledctl.8.gz $(MAN8_INSTDIR)/ledctl.8.gz
+- install -D ./ledctl.conf.5.gz $(MAN5_INSTDIR)/ledctl.conf.5.gz
++ install -D -m 644 ./ledmon.8.gz $(MAN8_INSTDIR)/ledmon.8.gz
++ install -D -m 644 ./ledctl.8.gz $(MAN8_INSTDIR)/ledctl.8.gz
++ install -D -m 644 ./ledctl.conf.5.gz $(MAN5_INSTDIR)/ledctl.conf.5.gz
+
+ uninstall:
+ rm -f $(MAN8_INSTDIR)/ledmon.8.gz $(MAN8_INSTDIR)/ledctl.8.gz
diff --git a/makefile.patch b/makefile.patch
new file mode 100644
index 0000000..0fd7202
--- /dev/null
+++ b/makefile.patch
@@ -0,0 +1,11 @@
+--- ledctl/src/Makefile 2010-03-23 14:40:33.000000000 +0100
++++ ledctl_new/src/Makefile 2011-01-07 17:05:01.925925000 +0100
+@@ -24,7 +24,7 @@
+ LEDCTL_INSTDIR=$(DESTDIR)/usr/bin
+
+ # Installation directory of ledmon application.
+-LEDMON_INSTDIR=$(DESTDIR)/sbin
++LEDMON_INSTDIR=$(DESTDIR)/usr/sbin
+
+ # Output directory for object files.
+ OUTDIR?=$(shell pwd)/build
diff --git a/sources b/sources
index e69de29..587a088 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6f7fc4f278880ebed54eedcbf53ff15b ledctl.tgz
More information about the scm-commits
mailing list