more lint changes
authorHolger Schurig <schurig@mn-solutions.de>
Wed, 29 Sep 2004 10:15:33 +0000 (10:15 +0000)
committerHolger Schurig <schurig@mn-solutions.de>
Wed, 29 Sep 2004 10:15:33 +0000 (10:15 +0000)
BKrev: 415a8b45sj56tRu3DNvk-RtKBIdS5w

busybox/busybox_1.00-rc1.oe
busybox/busybox_1.00-rc3.oe
classes/oelint.oeclass
linux/mnci-ramses_2.4.21-rmk2-pxa1.oe
mpd/mpd_0.11.1.oe
tinylogin/tinylogin_1.4.oe

index e56b0da..5a1539f 100644 (file)
@@ -7,6 +7,7 @@ cousins; however, the options that are included provide the expected \
 functionality and behave very much like their GNU counterparts. BusyBox \
 provides a fairly complete POSIX environment for any small or embedded \
 system."
+HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 PR = "r2"
 
index 19722c8..a0ba322 100644 (file)
@@ -7,6 +7,7 @@ cousins; however, the options that are included provide the expected \
 functionality and behave very much like their GNU counterparts. BusyBox \
 provides a fairly complete POSIX environment for any small or embedded \
 system."
+HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
index c4f2400..d7df1dd 100644 (file)
@@ -17,19 +17,59 @@ python do_lint() {
        testVar("DESCRIPTION")
 
 
+       ##############################
+       # Test that HOMEPAGE exists
+       #
+       s = testVar("HOMEPAGE")
+       if s=="unknown":
+               oe.error("HOMEPAGE is not set")
+       elif not s.startswith("http://"):
+               oe.error("HOMEPAGE doesn't start with http://")
+
+
+
        ##############################
        # Test for valid LICENSE
        #
+       valid_licenses = {
+               "GPL-2"         : "GPLv2",
+               "GPL LGPL FDL"  : True,
+               "GPL PSF"       : True,
+               "GPL/QPL"       : True,
+               "GPL"           : True,
+               "GPLv2"         : True,
+               "IBM"           : True,
+               "LGPL GPL"      : True,
+               "LGPL"          : True,
+               "MIT"           : True,
+               "OSL"           : True,
+               "Perl"          : True,
+               "Public Domain" : True,
+               "QPL"           : "GPL/QPL",
+               }
        s = testVar("LICENSE")
        if s=="unknown":
                oe.error("LICENSE is not set")
+       elif s.startswith("Vendor"):
+               pass
+       else:
+               try:
+                       newlic = valid_licenses[s]
+                       if newlic == False:
+                               oe.note("LICENSE '%s' is not recommended" % s)
+                       elif newlic != True:
+                               oe.note("LICENSE '%s' is not recommended, better use '%s'" % (s, newsect))
+               except:
+                       oe.note("LICENSE '%s' is not recommended" % s)
 
 
        ##############################
        # Test for valid MAINTAINER
        #
        s = testVar("MAINTAINER")
-       if s and s.find("@") == -1:
+       if s=="OpenEmbedded Team <oe@handhelds.org>":
+               oe.error("explicit MAINTAINER is missing, using default")
+       elif s and s.find("@") == -1:
                oe.error("You forgot to put an e-mail address into MAINTAINER")
 
 
index 8432e2a..143bc71 100644 (file)
@@ -1,5 +1,5 @@
 DESCRIPTION = "Linux kernel for MNCI device"
-MAINTAINER = "M&N Solutions"
+MAINTAINER = "M&N Solutions <info@mn-solutions.de>"
 LICENSE = "GPL"
 KV = "2.4.21"
 RMKV = "2"
index e69de29..2e14c9d 100644 (file)
@@ -0,0 +1,18 @@
+DESCRIPTION = "Music Player Daemon (mpd)"
+HOMEPAGE = "http://www.musicpd.org"
+LICENSE = "GPLv2"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+DEPENDS = "libvorbis libogg libid3tag libao zlib libmikmod libmad"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/musicpd/mpd-${PV}.tar.gz"
+
+inherit autotools
+
+EXTRA_OECONF = "--enable-ogg \
+               --enable-mpd-mad \
+               --enable-mpd-id3tag \
+               --with-id3tag-libraries=${STAGING_LIBDIR} \
+               --with-id3tag-includes=${STAGING_INCDIR} \
+               --with-mad-libraries=${STAGING_LIBDIR} \
+               --with-mad-includes=${STAGING_INCDIR} \
+               --without-faad"
index b2828ff..aa0cbf8 100644 (file)
@@ -1,8 +1,10 @@
-PR = "r1"
 DESCRIPTION = "TinyLogin is a suite of tiny UNIX \
 utilities for handling logins, user authentication, \
 changing passwords, and otherwise maintaining users \
 and groups on an embedded system."
+HOMEPAGE = "http://tinylogin.busybox.net/"
+LICENSE = "GPL"
+PR = "r1"
 
 SRC_URI = "http://tinylogin.busybox.net/downloads/tinylogin-${PV}.tar.bz2 \
        file://cvs-20040608.patch;patch=1;pnum=1 \