forked from pool/pommed
This commit is contained in:
commit
bc63fbd1be
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
pommed-1.9.tar.bz2
Normal file
3
pommed-1.9.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:008a8696f1d71e6cf464a7b9abd67919a9b264a9afb2fde1b21e07daad9da948
|
||||
size 969343
|
28
pommed-build.diff
Normal file
28
pommed-build.diff
Normal file
@ -0,0 +1,28 @@
|
||||
--- gpomme/gpomme-c.desktop
|
||||
+++ gpomme/gpomme-c.desktop
|
||||
@@ -7,4 +7,4 @@
|
||||
Exec=gpomme -c
|
||||
StartupNotify=true
|
||||
Type=Application
|
||||
-Categories=Application;Utility
|
||||
+Categories=System;Settings;HardwareSettings
|
||||
--- gpomme/gpomme.desktop
|
||||
+++ gpomme/gpomme.desktop
|
||||
@@ -7,4 +7,4 @@
|
||||
Exec=gpomme
|
||||
StartupNotify=true
|
||||
Type=Application
|
||||
-Categories=Application;Utility
|
||||
+Categories=System;Settings;HardwareSettings
|
||||
--- pommed/Makefile
|
||||
+++ pommed/Makefile
|
||||
@@ -42,8 +42,7 @@
|
||||
mactel/x1600_backlight.c mactel/gma950_backlight.c \
|
||||
mactel/nv8600mgt_backlight.c \
|
||||
mactel/kbd_backlight.c mactel/ambient.c mactel/acpi.c
|
||||
-
|
||||
-LIBS = /usr/lib/libpci.a
|
||||
+LIBS = -lpci
|
||||
endif
|
||||
|
||||
OBJS = $(SOURCES:%.c=%.o)
|
4
pommed.changes
Normal file
4
pommed.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 17 12:54:07 CEST 2007 - ro@suse.de
|
||||
|
||||
- created package from pommed (version 1.9)
|
108
pommed.init
Normal file
108
pommed.init
Normal file
@ -0,0 +1,108 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: pommed
|
||||
# Required-Start: $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: pommed daemon providing macbook backlight control
|
||||
# Description: Start pommed to allow control over backlight on macbook
|
||||
### END INIT INFO
|
||||
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
# Note: Special treatment of stop for LSB conformance
|
||||
POMMED_BIN=/usr/sbin/pommed
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Reset status of this service
|
||||
rc_reset
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting pommed "
|
||||
## Start daemon with startproc(8). If this fails
|
||||
## the return value is set appropriately by startproc.
|
||||
/sbin/startproc $POMMED_BIN
|
||||
|
||||
# Remember status and be verbose
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down pommed "
|
||||
## Stop daemon with killproc(8) and if this fails
|
||||
## killproc sets the return value according to LSB.
|
||||
|
||||
/sbin/killproc -TERM $POMMED_BIN
|
||||
|
||||
# Remember status and be verbose
|
||||
rc_status -v
|
||||
;;
|
||||
try-restart|condrestart)
|
||||
## Do a restart only if the service was active before.
|
||||
## Note: try-restart is now part of LSB (as of 1.9).
|
||||
## RH has a similar command named condrestart.
|
||||
if test "$1" = "condrestart"; then
|
||||
echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
|
||||
fi
|
||||
$0 status
|
||||
if test $? = 0; then
|
||||
$0 restart
|
||||
else
|
||||
rc_reset # Not running is not a failure.
|
||||
fi
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
## Stop the service and regardless of whether it was
|
||||
## running or not, start it again.
|
||||
$0 stop
|
||||
$0 start
|
||||
|
||||
# Remember status and be quiet
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
## Signal the daemon to reload its config. Most daemons
|
||||
## do this on signal 1 (SIGHUP).
|
||||
## If it does not support it, restart the service if it
|
||||
## is running.
|
||||
|
||||
echo -n "Reload service pommed "
|
||||
$0 try-restart
|
||||
rc_status
|
||||
;;
|
||||
reload)
|
||||
## Like force-reload, but if daemon does not support
|
||||
## signaling, do nothing (!)
|
||||
rc_failed 3
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for service pommed "
|
||||
## Check status with checkproc(8), if process is running
|
||||
## checkproc will return with exit status 0.
|
||||
|
||||
# Return value is slightly different for the status command:
|
||||
# 0 - service up and running
|
||||
# 1 - service dead, but /var/run/ pid file exists
|
||||
# 2 - service dead, but /var/lock/ lock file exists
|
||||
# 3 - service not running (unused)
|
||||
# 4 - service status unknown :-(
|
||||
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
|
||||
|
||||
# NOTE: checkproc returns LSB compliant status values.
|
||||
/sbin/checkproc $POMMED_BIN
|
||||
# NOTE: rc_status knows that we called this init script with
|
||||
# "status" option and adapts its messages accordingly.
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
165
pommed.spec
Normal file
165
pommed.spec
Normal file
@ -0,0 +1,165 @@
|
||||
#
|
||||
# spec file for package pommed (Version 1.9)
|
||||
#
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: pommed
|
||||
Url: http://technologeek.org/projects/pommed/
|
||||
BuildRequires: alsa-devel audiofile-devel dbus-1-devel gtk2-devel libconfuse-devel libglade2-devel libsmbios-devel libsmbios-libs pciutils-devel update-desktop-files xorg-x11-libX11-devel xorg-x11-libXext-devel xorg-x11-libXpm-devel xorg-x11-util-devel
|
||||
Group: Hardware/Mobile
|
||||
Version: 1.9
|
||||
Release: 1
|
||||
License: GPL v2 only
|
||||
Summary: Apple laptops hotkeys event handler
|
||||
AutoReqProv: on
|
||||
Source0: pommed-1.9.tar.bz2
|
||||
Source1: pommed.init
|
||||
Patch: pommed-build.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: eject
|
||||
|
||||
%description
|
||||
pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and
|
||||
PowerBook laptops and adjusts the LCD backlight, sound volume, keyboard
|
||||
backlight or ejects the CD-ROM drive accordingly.
|
||||
|
||||
pommed also monitors the ambient light sensors to automatically light
|
||||
up the keyboard backlight on the MacBook Pro and PowerBook.
|
||||
|
||||
Optional support for the Apple Remote control is available.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Julien BLACHE <jb@jblache.org>
|
||||
|
||||
%package -n gpomme
|
||||
Summary: graphical client for pommed
|
||||
Group: Hardware/Mobile
|
||||
Requires: pommed
|
||||
Requires: dbus-1
|
||||
|
||||
%description -n gpomme
|
||||
pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and
|
||||
PowerBook laptops and adjusts the LCD backlight, sound volume, keyboard
|
||||
backlight or ejects the CD-ROM drive accordingly.
|
||||
|
||||
gpomme is a graphical client for pommed. It listens for signals sent by
|
||||
pommed on DBus and displays the action taken by pommed along with the
|
||||
current state associated to this action.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Julien BLACHE <jb@jblache.org>
|
||||
|
||||
%package -n wmpomme
|
||||
Summary: WindowMaker dockapp client for pommed
|
||||
Group: Hardware/Mobile
|
||||
Requires: pommed
|
||||
Requires: dbus-1
|
||||
|
||||
%description -n wmpomme
|
||||
pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and
|
||||
PowerBook laptops and adjusts the LCD backlight, sound volume, keyboard
|
||||
backlight or ejects the CD-ROM drive accordingly.
|
||||
|
||||
wmpomme is a dockapp client for pommed. It displays the current level
|
||||
of each item controlled by pommed.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Julien BLACHE <jb@jblache.org>
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%patch
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
%install
|
||||
install -d $RPM_BUILD_ROOT/usr/bin
|
||||
install -d $RPM_BUILD_ROOT/usr/sbin
|
||||
install -d $RPM_BUILD_ROOT/etc/dbus-1/system.d
|
||||
install -d $RPM_BUILD_ROOT/etc/init.d
|
||||
install -d $RPM_BUILD_ROOT/usr/share/applications
|
||||
install -d $RPM_BUILD_ROOT/usr/share/icons
|
||||
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
|
||||
install -d $RPM_BUILD_ROOT/usr/share/gpomme
|
||||
install -d $RPM_BUILD_ROOT/usr/share/locale
|
||||
install -d $RPM_BUILD_ROOT/usr/share/man/man1
|
||||
install -m 755 pommed/pommed $RPM_BUILD_ROOT/usr/sbin
|
||||
%ifarch ppc ppc64
|
||||
install -m 644 pommed.conf.pmac $RPM_BUILD_ROOT/etc/pommed.conf
|
||||
%else
|
||||
install -m 644 pommed.conf.mactel $RPM_BUILD_ROOT/etc/pommed.conf
|
||||
%endif
|
||||
install -m 644 dbus-policy.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d/pommed.conf
|
||||
install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/pommed
|
||||
ln -sf /etc/init.d/pommed $RPM_BUILD_ROOT/usr/sbin/rcpommed
|
||||
install -m 644 pommed.1 $RPM_BUILD_ROOT/usr/share/man/man1
|
||||
# gpomme
|
||||
install -m 755 gpomme/gpomme $RPM_BUILD_ROOT/usr/bin
|
||||
install -m 644 gpomme/gpomme.1 $RPM_BUILD_ROOT/usr/share/man/man1
|
||||
install -m 644 gpomme/*.desktop $RPM_BUILD_ROOT/usr/share/applications
|
||||
install -m 644 icons/gpomme* $RPM_BUILD_ROOT/usr/share/icons
|
||||
install -m 644 icons/gpomme_32x32.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/gpomme.xpm
|
||||
install -m 644 gpomme/gpomme.glade $RPM_BUILD_ROOT/usr/share/gpomme
|
||||
cp -a gpomme/themes $RPM_BUILD_ROOT/usr/share/gpomme
|
||||
rm -rfv $RPM_BUILD_ROOT/usr/share/gpomme/themes/src
|
||||
for mo in gpomme/po/*.mo ; do
|
||||
lang=`basename $mo .mo`
|
||||
install -d $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES
|
||||
install -m 644 $mo $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES
|
||||
done
|
||||
# wmpomme
|
||||
install -m 755 wmpomme/wmpomme $RPM_BUILD_ROOT/usr/bin
|
||||
install -m 644 wmpomme/wmpomme.1 $RPM_BUILD_ROOT/usr/share/man/man1
|
||||
install -m 644 icons/gpomme_32x32.xpm $RPM_BUILD_ROOT/usr/share/icons/wmpomme.xpm
|
||||
%suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/applications/gpomme-c.desktop
|
||||
%suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/applications/gpomme.desktop
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS README TODO
|
||||
%config(noreplace) /etc/pommed.conf
|
||||
%config(noreplace) /etc/dbus-1/system.d/pommed.conf
|
||||
/etc/init.d/pommed
|
||||
/usr/sbin/pommed
|
||||
/usr/sbin/rcpommed
|
||||
/usr/share/man/man1/po*
|
||||
|
||||
%files -n gpomme
|
||||
%defattr(-,root,root)
|
||||
/usr/bin/gpomme
|
||||
/usr/share/applications/*.desktop
|
||||
/usr/share/icons/gp*
|
||||
/usr/share/pixmaps/gp*
|
||||
/usr/share/gpomme
|
||||
/usr/share/locale/*/LC_MESSAGES/*
|
||||
/usr/share/man/man1/gpo*
|
||||
|
||||
%files -n wmpomme
|
||||
%defattr(-,root,root)
|
||||
/usr/bin/wmpomme
|
||||
/usr/share/icons/wm*
|
||||
/usr/share/man/man1/wmpo*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 17 2007 - ro@suse.de
|
||||
- created package from pommed (version 1.9)
|
Loading…
Reference in New Issue
Block a user