Major layout change to the packages directory

Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.

The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.

Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-27 15:14:24 +01:00
parent da49de6885
commit 29d6678fd5
2534 changed files with 19 additions and 206 deletions

View File

@@ -0,0 +1,10 @@
--- lirc/drivers/lirc_sir/lirc_sir.c.orig 2004-11-18 17:30:17 +0100
+++ lirc/drivers/lirc_sir/lirc_sir.c 2004-11-18 17:30:21 +0100
@@ -628,6 +628,7 @@
struct timeval curr_tv;
static unsigned long deltv;
#ifdef LIRC_ON_SA1100
+ unsigned long deltintrtv;
int status;
static int n=0;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,39 @@
#! /bin/sh
#
# This is an init script for Familiar
# Copy it to /etc/init.d/lircd and type
# > update-rc.d lircd defaults 20
#
test -f /usr/sbin/lircd || exit 0
test -f /etc/lircd.conf || exit 0
case "$1" in
start)
echo -n "Starting lirc daemon: lircd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
echo "."
;;
stop)
echo -n "Stopping lirc daemon: lircd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
echo "."
;;
reload|force-reload)
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
;;
restart)
echo -n "Stopping lirc daemon: lircd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
sleep 1
echo -n "Starting lirc daemon: lircd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
echo "."
;;
*)
echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,37 @@
#! /bin/sh
#
# This is an init script for Familiar
# Copy it to /etc/init.d/lircexecd and type
# > update-rc.d lircexecd defaults 20
# It must be started after lircd (and it does alphabetically :-)
# irexec reads /etc/lircrc by default
test -f /usr/bin/irexec || exit 0
test -f /etc/lircrc || exit 0
case "$1" in
start)
echo -n "Starting lircexec daemon: irexec"
start-stop-daemon --start --quiet --exec /usr/bin/irexec -- --daemon
echo "."
;;
stop)
echo -n "Stopping lircexec daemon: irexec"
start-stop-daemon --stop --quiet --exec /usr/bin/irexec
echo "."
;;
restart|force-restart)
echo -n "Stopping lircexec daemon: irexec"
start-stop-daemon --stop --quiet --exec /usr/bin/irexec
sleep 1
echo -n "Starting lircexec daemon: irexec"
start-stop-daemon --start --quiet --exec /usr/bin/irexec -- --daemon
echo "."
;;
*)
echo "Usage: /etc/init.d/lircexec {start|stop|reload|restart|force-restart}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,38 @@
#! /bin/sh
#
# This is an init script for Familiar
# Copy it to /etc/init.d/lirc and type
# > update-rc.d lirc defaults 20
#
test -f /usr/sbin/lircmd || exit 0
case "$1" in
start)
echo -n "Starting lirc daemon: lircmd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
echo "."
;;
stop)
echo -n "Stopping lirc daemon: lircmd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
echo "."
;;
reload|force-reload)
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
;;
restart)
echo -n "Stopping lirc daemon: lircmd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
sleep 1
echo -n "Starting lirc daemon: lircmd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
echo "."
;;
*)
echo "Usage: /etc/init.d/lircmd {start|stop|reload|restart|force-reload}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,113 @@
# This is the default files read by all lirc clients
# (see also /etc/lircd.conf)
# I run /sbin/buzzer before every command to get an audible feedback
## Here LIRC could shutdown your system
#begin
# prog = irexec
# remote = RC5
# repeat = 0
# button = vcr2-standby
# config = /sbin/buzzer; /sbin/halt
#end
## Here LIRC controls your mpd music deamon
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-pause
config = /sbin/buzzer; mpc toggle
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-step+
config = /sbin/buzzer; mpc next
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-step-
config = /sbin/buzzer; mpc prev
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-scan_forward
config = /sbin/buzzer; mpc seek +00:00:30
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-scan_reverse
config = /sbin/buzzer; mpc seek -00:00:30
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-brightness+
config = /sbin/buzzer; mpc volume +20
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-brightness-
config = /sbin/buzzer; mpc volume -20
end
## Here LIRC acts as an repeater
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-volume+
config = /sbin/buzzer; irsend SEND_ONCE RC5 amp1-volume+
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-volume-
config = /sbin/buzzer; irsend SEND_ONCE RC5 amp1-volume-
end
## Here LIRC is the input device for your LC display software
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-1
config = A
end
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-2
config = B
end
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-3
config = C
end
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-4
config = D
end

View File

@@ -0,0 +1,141 @@
--- lirc/remotes/hauppauge/lircd.conf.hauppauge~ 2003-05-03 15:42:30.000000000 +0100
+++ lirc/remotes/hauppauge/lircd.conf.hauppauge 2004-10-10 20:14:14.000000000 +0100
@@ -51,71 +51,3 @@
end codes
end remote
-
-
-#
-# this config file was automatically generated
-# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
-#
-# contributed by
-#
-# brand: Hauppauge
-# model no. of remote control:
-# devices being controlled by this remote: PVR 2/350
-#
-
-begin remote
-
- name hauppauge_pvr
- bits 13
- flags RC5|CONST_LENGTH
- eps 30
- aeps 100
-
- one 969 811
- zero 969 811
- plead 1097
- gap 114605
- toggle_bit 2
-
-
- begin codes
- Power 0x00000000000017FD
- Go 0x00000000000017FB
- 1 0x00000000000017C1
- 2 0x00000000000017C2
- 3 0x00000000000017C3
- 4 0x00000000000017C4
- 5 0x00000000000017C5
- 6 0x00000000000017C6
- 7 0x00000000000017C7
- 8 0x00000000000017C8
- 9 0x00000000000017C9
- Back/Exit 0x00000000000017DF
- 0 0x00000000000017C0
- Menu 0x00000000000017CD
- Red 0x00000000000017CB
- Green 0x00000000000017EE
- Yellow 0x00000000000017F8
- Blue 0x00000000000017E9
- Ch+ 0x00000000000017E0
- Ch- 0x00000000000017E1
- Vol- 0x00000000000017D1
- Vol+ 0x00000000000017D0
- Ok 0x00000000000017E5
- Mute 0x00000000000017CF
- Blank 0x00000000000017CC
- Full 0x00000000000017FC
- Rewind 0x00000000000017F2
- Play 0x00000000000017F5
- Forward 0x00000000000017F4
- Record 0x00000000000017F7
- Stop 0x00000000000017F6
- Pause 0x00000000000017F0
- Replay 0x00000000000017E4
- Skip 0x00000000000017DE
- end codes
-
-end remote
-
-
--- /dev/null 2004-06-13 02:32:19.000000000 +0100
+++ lirc/remotes/hauppauge/lircd.conf.hauppauge-pvr 2004-10-10 20:14:05.000000000 +0100
@@ -0,0 +1,64 @@
+#
+# this config file was automatically generated
+# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
+#
+# contributed by
+#
+# brand: Hauppauge
+# model no. of remote control:
+# devices being controlled by this remote: PVR 2/350
+#
+
+begin remote
+
+ name hauppauge_pvr
+ bits 13
+ flags RC5|CONST_LENGTH
+ eps 30
+ aeps 100
+
+ one 969 811
+ zero 969 811
+ plead 1097
+ gap 114605
+ toggle_bit 2
+
+
+ begin codes
+ Power 0x00000000000017FD
+ Go 0x00000000000017FB
+ 1 0x00000000000017C1
+ 2 0x00000000000017C2
+ 3 0x00000000000017C3
+ 4 0x00000000000017C4
+ 5 0x00000000000017C5
+ 6 0x00000000000017C6
+ 7 0x00000000000017C7
+ 8 0x00000000000017C8
+ 9 0x00000000000017C9
+ Back/Exit 0x00000000000017DF
+ 0 0x00000000000017C0
+ Menu 0x00000000000017CD
+ Red 0x00000000000017CB
+ Green 0x00000000000017EE
+ Yellow 0x00000000000017F8
+ Blue 0x00000000000017E9
+ Ch+ 0x00000000000017E0
+ Ch- 0x00000000000017E1
+ Vol- 0x00000000000017D1
+ Vol+ 0x00000000000017D0
+ Ok 0x00000000000017E5
+ Mute 0x00000000000017CF
+ Blank 0x00000000000017CC
+ Full 0x00000000000017FC
+ Rewind 0x00000000000017F2
+ Play 0x00000000000017F5
+ Forward 0x00000000000017F4
+ Record 0x00000000000017F7
+ Stop 0x00000000000017F6
+ Pause 0x00000000000017F0
+ Replay 0x00000000000017E4
+ Skip 0x00000000000017DE
+ end codes
+
+end remote

View File

@@ -0,0 +1,13 @@
EXTRA_OECONF = "--with-kerneldir=${STAGING_KERNEL_DIR} --with-driver=${DRIVER}"
DRIVER ?= "serial"
# fails to build at the moment, re-enable later
#DRIVER_collie = "sa1100"
DRIVER_h3600 = "sa1100"
DRIVER_simpad = "sa1100"
DRIVER_nslu2 = "nslu2"
# XXX Why is X disabled on all these platforms anyway?
EXTRA_OECONF_append_collie = " --without-x"
EXTRA_OECONF_append_h3600 = " --without-x"
EXTRA_OECONF_append_simpad = " --without-x"
EXTRA_OECONF_append_nslu2 = " --without-x --with-transmitter --with-soft-carrier"

View File

@@ -0,0 +1,33 @@
DESCRIPTION = "LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls."
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "virtual/kernel virtual/fakeroot-native"
PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/lirc/lirc-${PV}.tar.gz \
file://lirc_sir-sa1100.patch;patch=1"
S = "${WORKDIR}/lirc-${PV}"
inherit autotools module-base
include lirc-config.inc
do_compile() {
# ${KERNEL_LD} doesn't understand the LDFLAGS, so suppress them
cd drivers && oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" LDFLAGS=""
}
fakeroot do_install() {
oe_runmake -C drivers DESTDIR="${D}" moduledir="/lib/modules/${KERNEL_VERSION}/lirc" install
rm -rf ${D}/dev
}
pkg_postinst() {
#!/bin/sh
set -e
if [ ! -c $D/dev/lirc ]; then mknod $D/dev/lirc c 61 0; fi
exit 0
}
FILES_${PN} = "/lib/modules"

View File

@@ -0,0 +1,31 @@
DESCRIPTION = "LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls."
SECTION = "console/network"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "virtual/kernel virtual/libx11 libxau libsm libice"
PR = "r5"
SRC_URI = "${SOURCEFORGE_MIRROR}/lirc/lirc-${PV}.tar.gz \
file://lircd.init file://lircmd.init"
S = "${WORKDIR}/lirc-${PV}"
inherit autotools module-base update-rc.d
INITSCRIPT_NAME = "lircd"
INITSCRIPT_PARAMS = "defaults 20"
include lirc-config.inc
EXTRA_OEMAKE = 'SUBDIRS="daemons tools"'
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install ${WORKDIR}/lircd.init ${D}${sysconfdir}/init.d/lircd
install -d ${D}${datadir}/lirc/
cp -pPR ${S}/remotes ${D}${datadir}/lirc/
}
PACKAGES =+ "lirc-x"
FILES_lirc-x = "${bindir}/irxevent ${bindir}/xmode2"