X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=setup%2Fcore-init.d%2F020_sections;fp=setup%2Fcore-init.d%2F020_sections;h=b4c265fea96281ef285e089c7b22d78909706f70;hb=890acc3c99565cfa61f24c75c49db4eeacc71fbb;hp=0000000000000000000000000000000000000000;hpb=2c3264544ddd44b4f90730296c909ac7d3b3fe03;p=dak.git diff --git a/setup/core-init.d/020_sections b/setup/core-init.d/020_sections new file mode 100755 index 00000000..b4c265fe --- /dev/null +++ b/setup/core-init.d/020_sections @@ -0,0 +1,66 @@ +#!/bin/sh + +echo "Creating default sections" + +set -e +set -u + +SECTIONS="admin +cli-mono +comm +database +debian-installer +debug +devel +doc +editors +electronics +embedded +fonts +games +gnome +gnu-r +gnustep +graphics +hamradio +haskell +httpd +interpreters +java +kde +kernel +libdevel +libs +lisp +localization +mail +math +misc +net +news +ocaml +oldlibs +otherosfs +perl +php +python +ruby +science +shells +sound +tasks +tex +text +utils +vcs +video +web +x11 +xfce +zope" + +for prefix in "" "contrib/" "non-free/"; do + for section in ${SECTIONS}; do + psql -c "INSERT INTO section (section) VALUES ('$prefix$section')" >/dev/null + done +done