some additional thoughts (some german, sry)
Datenbankschema
Tabelle mit allen Infos zu den Paketen: pkgs
-> indiziert nach NAME
Tabelle mit zwei Feldern, PaketNAME und SubpaketNAME: subpkgs
-> beide zusammen geben den primary key
Tabelle mit zweimal PaketNAME: builddeps
-> beide zusammen geben den primary key
Tabelle mit zweimal PaketNAME: pkgdeps
-> beide zusammen geben den primary key
?
XXX what about pure config entries?
________________________________________________________________________________
Feldliste
NAME <error>
BROKEN n
VERSION <error>
RELEASE 1
PKGNAME ${NAME}-${VERSION}-${RELEASE}
SOURCES <optional>
SOURCES_<n> <optional>
DISTFILES 1
DISTFILE_<n> ${NAME}-${VERSION}.tar.gz
HASHES md5
HASH_<hash> <error> for <hash> in ${HASHES}
HASH_<n>_<hash> <error if n .le. ${DISTFILES}>
INITNUM <optional>
RCCONF_SYMS 0
RCCONF_<n>_TAG <error if n .le. ${RCCONF_SYMS}>
RCCONF_<n>_SYM ${RCCONF_n_TAG}
RCCONF_<n>_VAL NO
BUILDDEPS <optional> one per line
PKGDEPS <optional> one per line
MENUDEP <optional>
MENUITEM <optional> see below
CSYM <auto-generated>
CITEM tristate
DEFAULT n
DESCRIPTION <error>
HELPTEXT ${DESCRIPTION}
FLAVOURS <optional> space separated (or with \ continued)
MULTIPKGS <optional> space separated (or with \ continued)
BUILDDEPS_<x> <optional>
PKGDEPS_<x> <optional>
MENUDEP_<x> <optional>
MENUITEM_<x> <optional> see below
CSYM_<x> <auto-generated>
CITEM_<x> bool if flavour, tristate if subpackage
DEFAULT_<x> n
DESCRIPTION_<x> <error>
HELPTEXT_<x> ${DESCRIPTION_x}
-> if MENUITEM is not empty, the Config.in entry is formatted
like this: "${MENUITEM}.....${DESCRIPTION}"
else it's "${DESCRIPTION}" only, without padding
XXX what about indentation?
//mirabile
--
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence. -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers