diff --git a/battery-status-led.1 b/battery-status-led.1 index 3eb3762..f56110f 100644 --- a/battery-status-led.1 +++ b/battery-status-led.1 @@ -1,14 +1,15 @@ .TH BATTERY-STATUS-LED 1 LOCAL .SH NAME - -Battery Status LED - Battery (low/critical) status indication by making a (the -capslock) LED blink +.B battery-status-led +\- Blink a LED on low battery .SH SYNOPSIS -.B battery-status-led +battery-status-led .SH DESCRIPTION +Battery (low/critical) status indication by making a (the capslock) LED blink + Takes no argument. To pick another LED device, edit .I /lib/systemd/system/battery-status-led.service and modify @@ -17,11 +18,15 @@ to something else. The default value is .I /sys/class/leds/input4\:\:capslock .SH AUTHOR -Denes Matetelki +.MT denes.matetelki@gmail.com +Denes Matetelki +.ME .SH SEE ALSO -Homepage at: +Homepage: +.UR https://github.com/dmatetelki/battery-status-led/ +.UE .br Copyright © 2018 Denes Matetelki. diff --git a/debian/package-deb.sh b/debian/package-deb.sh index af09efc..2569ee6 100755 --- a/debian/package-deb.sh +++ b/debian/package-deb.sh @@ -30,22 +30,61 @@ Section: misc Priority: optional Architecture: amd64 Maintainer: Denes Matetelki -Description: Battery Status LED - Battery (low/critical) status indication by making a (the capslock) LED blink" +Description: Blink a LED on low battery + Battery (low/critical) status indication by making a (the capslock) LED blink" EOL -mkdir -p build/${NAME}_${VERSION}/lib/systemd/system +cat > build/copyright < build/changelog.Debian < Fri, 31 Aug 2018 12:00:00 +0100 +EOL + +mkdir -m 0755 -p build/${NAME}_${VERSION}/lib/systemd/system cp ../${NAME}.service build/${NAME}_${VERSION}/lib/systemd/system/ -mkdir -p build/${NAME}_${VERSION}/usr/bin +mkdir -m 0755 -p build/${NAME}_${VERSION}/usr/bin cp ../${NAME} build/${NAME}_${VERSION}/usr/bin/ -mkdir -p build/${NAME}_${VERSION}/usr/share/doc/${NAME} +mkdir -m 0755 -p build/${NAME}_${VERSION}/usr/share/doc/${NAME} cp ../README.md build/${NAME}_${VERSION}/usr/share/doc/${NAME}/ +mv build/copyright build/${NAME}_${VERSION}/usr/share/doc/${NAME} +chmod 0644 build/${NAME}_${VERSION}/usr/share/doc/${NAME}/copyright +mv build/changelog.Debian build/${NAME}_${VERSION}/usr/share/doc/${NAME} +gzip -9 -n build/${NAME}_${VERSION}/usr/share/doc/${NAME}/changelog.Debian +chmod 0644 build/${NAME}_${VERSION}/usr/share/doc/${NAME}/changelog.Debian.gz -mkdir -p build/${NAME}_${VERSION}/usr/share/man/man1 +mkdir -m 0755 -p build/${NAME}_${VERSION}/usr/share/man/man1 cp ../${NAME}.1 build/${NAME}_${VERSION}/usr/share/man/man1/ -bzip2 build/${NAME}_${VERSION}/usr/share/man/man1/${NAME}.1 +gzip -9 -n build/${NAME}_${VERSION}/usr/share/man/man1/${NAME}.1 cd build dpkg-deb --root-owner-group --build ${NAME}_${VERSION} diff --git a/redhat/package-rpm b/redhat/package-rpm index ce3e221..f4369d3 100755 --- a/redhat/package-rpm +++ b/redhat/package-rpm @@ -28,6 +28,9 @@ cat > build/${NAME}.spec < + Summary: Battery status indication on an LED Group: Utilities @@ -40,7 +43,7 @@ Source2: README.md Source3: ${NAME}.1 %description -Battery (low/critical) status indication by making a (the capslock) LED blink +Battery (low/critical) status indication by making a (the caps-lock) LED blink # %prep @@ -54,25 +57,30 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/${NAME}/ mkdir -p %{buildroot}/%{_mandir}/man1 install -p -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/ -# %clean +%clean +rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_unitdir}/${NAME}.service %{_bindir}/${NAME} %{_docdir}/${NAME}/README.md -%{_mandir}/man1/${NAME}.1.gz +%{_mandir}/man1/${NAME}.1.* + +%changelog +* Fri Aug 31 2018 Denes Matetelki - 0.1-1 +- Initial release -# %changelog EOL cp ../${NAME}.service build/ cp ../${NAME} build/ cp ../README.md build/ cp ../${NAME}.1 build/ +# bzip2 -z -9 build/${NAME}.1 cd build rpmbuild --define "_sourcedir $PWD" --define "_rpmdir $PWD" --define "_unitdir /lib/systemd/system" -bb ${NAME}.spec cd .. mv build/noarch/${NAME}-${VERSION}-${RELEASE}.noarch.rpm . -rm -rf build +#rm -rf build