From 33587a8612c1d14fba4dd84ba0f6bedbbd6cfa13 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Wed, 29 Sep 2004 10:15:33 +0000 Subject: more lint changes BKrev: 415a8b45sj56tRu3DNvk-RtKBIdS5w --- busybox/busybox_1.00-rc1.oe | 1 + busybox/busybox_1.00-rc3.oe | 1 + classes/oelint.oeclass | 42 ++++++++++++++++++++++++++++++++++- linux/mnci-ramses_2.4.21-rmk2-pxa1.oe | 2 +- mpd/mpd_0.11.1.oe | 18 +++++++++++++++ tinylogin/tinylogin_1.4.oe | 4 +++- 6 files changed, 65 insertions(+), 3 deletions(-) diff --git a/busybox/busybox_1.00-rc1.oe b/busybox/busybox_1.00-rc1.oe index e56b0daa8d..5a1539f2ef 100644 --- a/busybox/busybox_1.00-rc1.oe +++ b/busybox/busybox_1.00-rc1.oe @@ -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" diff --git a/busybox/busybox_1.00-rc3.oe b/busybox/busybox_1.00-rc3.oe index 19722c8dd4..a0ba32284d 100644 --- a/busybox/busybox_1.00-rc3.oe +++ b/busybox/busybox_1.00-rc3.oe @@ -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" diff --git a/classes/oelint.oeclass b/classes/oelint.oeclass index c4f24002e1..d7df1dd641 100644 --- a/classes/oelint.oeclass +++ b/classes/oelint.oeclass @@ -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.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") diff --git a/linux/mnci-ramses_2.4.21-rmk2-pxa1.oe b/linux/mnci-ramses_2.4.21-rmk2-pxa1.oe index 8432e2ac93..143bc71659 100644 --- a/linux/mnci-ramses_2.4.21-rmk2-pxa1.oe +++ b/linux/mnci-ramses_2.4.21-rmk2-pxa1.oe @@ -1,5 +1,5 @@ DESCRIPTION = "Linux kernel for MNCI device" -MAINTAINER = "M&N Solutions" +MAINTAINER = "M&N Solutions " LICENSE = "GPL" KV = "2.4.21" RMKV = "2" diff --git a/mpd/mpd_0.11.1.oe b/mpd/mpd_0.11.1.oe index e69de29bb2..2e14c9d746 100644 --- a/mpd/mpd_0.11.1.oe +++ b/mpd/mpd_0.11.1.oe @@ -0,0 +1,18 @@ +DESCRIPTION = "Music Player Daemon (mpd)" +HOMEPAGE = "http://www.musicpd.org" +LICENSE = "GPLv2" +MAINTAINER = "Chris Larson " +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" diff --git a/tinylogin/tinylogin_1.4.oe b/tinylogin/tinylogin_1.4.oe index b2828ffaee..aa0cbf88ef 100644 --- a/tinylogin/tinylogin_1.4.oe +++ b/tinylogin/tinylogin_1.4.oe @@ -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 \ -- cgit 1.2.3-korg