mirror of
https://github.com/clearlinux/common.git
synced 2026-07-14 00:35:53 +00:00
Compare commits
189 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 517f5bc371 | |||
| 284ccd9ce0 | |||
| 43d436eec3 | |||
| 2bb93912f6 | |||
| 3a0c58c76f | |||
| 5519d04178 | |||
| e733b31a68 | |||
| 46bb95d483 | |||
| afafad1ed9 | |||
| bd030b99fe | |||
| 179cec491a | |||
| 3f9a4421d4 | |||
| 519fe3ef50 | |||
| a95343b9d1 | |||
| 4ffa3d7af0 | |||
| 05115e1bc3 | |||
| fff95669db | |||
| 36d363d533 | |||
| 74028d1094 | |||
| e9baf282b5 | |||
| fa36a19fe7 | |||
| cf4599a923 | |||
| 3e7a03c6b6 | |||
| c4e133da04 | |||
| 295db72a7c | |||
| a4927695e0 | |||
| e2ede0ec09 | |||
| d3f7e72d7c | |||
| ce67fd374a | |||
| 1feea0f15e | |||
| 4c1c55f03e | |||
| 214ebc3f93 | |||
| 00997dcd48 | |||
| 07fdbe3153 | |||
| b671ab5709 | |||
| fc29b4c1c3 | |||
| f108ac36d6 | |||
| 1c2bc9d50c | |||
| 8952175bc9 | |||
| 3812469ac2 | |||
| d1b434583a | |||
| dbd3c9accf | |||
| 6214fa5e9f | |||
| 8e9dd55e0f | |||
| 9ee80a2635 | |||
| 653105ffdf | |||
| a67fe47e39 | |||
| 103222eb4e | |||
| 0304bbd6b1 | |||
| 4ca1662790 | |||
| 94e2c39146 | |||
| d67be8a71b | |||
| 130f0f089e | |||
| a75e19a379 | |||
| d2e1c72c33 | |||
| b94a1c537f | |||
| 164dd8300e | |||
| 32141b9181 | |||
| bc66045b2d | |||
| 649a59bf12 | |||
| b1706fe2c4 | |||
| 6548a7a206 | |||
| a3fcd6a943 | |||
| 3c834e4761 | |||
| 77c334ec1a | |||
| 7c013dd5df | |||
| a499f61626 | |||
| 794174863b | |||
| dedad8c6c7 | |||
| 54737f7d97 | |||
| 56fdddbca3 | |||
| 58dff13c12 | |||
| 45a416f269 | |||
| b09ef7403e | |||
| 2059376f34 | |||
| 4501493d03 | |||
| df3579f538 | |||
| 3c01990ffc | |||
| 991e0baaaa | |||
| 434ab82632 | |||
| 0f814b2df9 | |||
| f2c3f4f95b | |||
| 590efe2b9c | |||
| 7919adae9f | |||
| 8ea05f2ae4 | |||
| 3560600fb6 | |||
| 0e54abbb3f | |||
| 3e7f5be6fc | |||
| 36d3edd56c | |||
| 9008cbccba | |||
| 04022fb765 | |||
| 424c34140e | |||
| f85cd42756 | |||
| e7afb1ae5e | |||
| 2c52a5ab39 | |||
| d84fec113e | |||
| f1b1424db4 | |||
| df8b789d60 | |||
| 78d7b4366b | |||
| 7be12344b6 | |||
| 04e58480cb | |||
| ebcc67f00b | |||
| f5b1aa8c87 | |||
| c61c91f9f2 | |||
| a57af837d8 | |||
| 03ba957d5f | |||
| d661496a4c | |||
| 4e1ce01d4e | |||
| dfeb8f9862 | |||
| 79c4befdea | |||
| c8c0c08100 | |||
| 877cd04101 | |||
| 7453e26bc7 | |||
| 11e0b5baee | |||
| 54c652944f | |||
| ef5179c975 | |||
| fc9793ff4e | |||
| 1508582709 | |||
| fca82072fa | |||
| 7fb07fdb29 | |||
| 387cb23c79 | |||
| c63ed02014 | |||
| d0773602f5 | |||
| 7b2b947843 | |||
| e619aeeab5 | |||
| f041821042 | |||
| 04e79ac6f7 | |||
| 942c21283f | |||
| 0803beead9 | |||
| 8bf3888935 | |||
| 3f2c7de583 | |||
| 514048840f | |||
| 012a1a3767 | |||
| 0168eb6258 | |||
| 2212f350e9 | |||
| 75a06769ea | |||
| 797f6c050c | |||
| 3169a8db4c | |||
| c6e5d09862 | |||
| 76d551ae77 | |||
| 92202763aa | |||
| 3a666723c1 | |||
| ed7e63d752 | |||
| bf6c49b8b9 | |||
| cc0b7da35a | |||
| 33febf4489 | |||
| 52ab50a9c7 | |||
| 70d40d9b59 | |||
| 8b709c2e1b | |||
| ea4e713277 | |||
| ca817a8c5e | |||
| db80ffd052 | |||
| 54e7c47bd6 | |||
| 60cb8aa36a | |||
| 3a5c12aa29 | |||
| 118120ca01 | |||
| f59a650cf4 | |||
| 1dae5422cc | |||
| b4860a0d82 | |||
| 4760d853bb | |||
| 4331a0a193 | |||
| ca68988393 | |||
| 37879628f7 | |||
| 7f158c6e91 | |||
| 4b9b44feef | |||
| 20e55005ac | |||
| ceeee94f0c | |||
| 852b6e83c9 | |||
| ae9f0610d6 | |||
| fa65110479 | |||
| 4259e8dbf0 | |||
| 56a38edc64 | |||
| d5cdd5d1c5 | |||
| 806a1f5593 | |||
| b82d61d686 | |||
| d7404ca99d | |||
| c81774a23c | |||
| b1ef20b90b | |||
| b100150ca3 | |||
| 482940952d | |||
| b50fabd346 | |||
| c383979d14 | |||
| 08138ad889 | |||
| b78940d18a | |||
| bb74ceef8d | |||
| 12800a51fa | |||
| 9b445f1116 | |||
| 40898f6ce0 | |||
| 3b4b1b3053 |
@@ -17,5 +17,9 @@ update:
|
|||||||
curl -f -o packages ${BASE_URL}/source/package-sources
|
curl -f -o packages ${BASE_URL}/source/package-sources
|
||||||
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
|
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
|
||||||
|
|
||||||
|
.PHONY: spdx
|
||||||
spdx:
|
spdx:
|
||||||
curl -s spdx.org/licenses/ | sed '0,/<tbody>/d;/<\/tbody>/q;s/<tr>/\f/g;s/$$/,/g;s/<[^>]*>//g' | awk 'BEGIN{RS="\f";FS=","} {print $$4}' | sed '/^$$/d;s/^[ ]*//' > spdx
|
JSON=$$(mktemp); \
|
||||||
|
trap "rm $$JSON" EXIT; \
|
||||||
|
curl -f -S -s https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json > $$JSON || exit 1; \
|
||||||
|
jq -r '.licenses[] | .licenseId' < $$JSON | LC_COLLATE=C sort > licenses-spdx
|
||||||
|
|||||||
+45
-3
@@ -15,6 +15,7 @@ SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --
|
|||||||
SRPMFILE = results/$(SRPMVERS).src.rpm
|
SRPMFILE = results/$(SRPMVERS).src.rpm
|
||||||
|
|
||||||
LATEST_RPMS = $(wildcard rpms/*.rpm)
|
LATEST_RPMS = $(wildcard rpms/*.rpm)
|
||||||
|
DEBUGINFO_RPM = $(wildcard rpms/*-debuginfo-*.rpm)
|
||||||
RPMS ?= $(LATEST_RPMS)
|
RPMS ?= $(LATEST_RPMS)
|
||||||
|
|
||||||
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
||||||
@@ -45,7 +46,7 @@ upstream:
|
|||||||
#help or that it is in the exceptions list.
|
#help or that it is in the exceptions list.
|
||||||
spdxcheck: $(SPECFILE)
|
spdxcheck: $(SPECFILE)
|
||||||
@for LICENSE in `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{LICENSE}\n' $(SPECFILE)`; do \
|
@for LICENSE in `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{LICENSE}\n' $(SPECFILE)`; do \
|
||||||
if ! grep -q "^$$LICENSE$$" $(TOPLVL)/projects/common/licenses-spdx && ! grep -q "$$LICENSE$$" $(TOPLVL)/projects/common/licenses-exceptions; then FAIL=yes; echo "ERROR: License '$$LICENSE' is not an allowed SPDX license ID"; fi; \
|
if ! grep -qx "$$LICENSE" $(TOPLVL)/projects/common/licenses-{spdx,exceptions,extra}; then FAIL=yes; echo "ERROR: License '$$LICENSE' is not an allowed SPDX license ID"; fi; \
|
||||||
done; test -z "$$FAIL"
|
done; test -z "$$FAIL"
|
||||||
|
|
||||||
#help cvecheck: Checks
|
#help cvecheck: Checks
|
||||||
@@ -61,7 +62,7 @@ clean:
|
|||||||
|
|
||||||
#help proper: Brings your copy of the package to a nearly clean git checkout state.
|
#help proper: Brings your copy of the package to a nearly clean git checkout state.
|
||||||
proper: repodel
|
proper: repodel
|
||||||
rm -rf results
|
rm -rf results rpms
|
||||||
rm -f build.log.round*
|
rm -f build.log.round*
|
||||||
rm -f mock_build.log mock_srpm.log $(__allsources) report.html
|
rm -f mock_build.log mock_srpm.log $(__allsources) report.html
|
||||||
|
|
||||||
@@ -154,13 +155,15 @@ pullrebase:
|
|||||||
fi \
|
fi \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
preautospec-checks:
|
||||||
|
|
||||||
#help autospec: automatically generates a specfile. If there is
|
#help autospec: automatically generates a specfile. If there is
|
||||||
#help already a specfile, it will be overwritten. Several files used by
|
#help already a specfile, it will be overwritten. Several files used by
|
||||||
#help autospec will be created in the process.
|
#help autospec will be created in the process.
|
||||||
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
||||||
#help to autospec.
|
#help to autospec.
|
||||||
#help For more information, see the project at https://github.com/clearlinux/autospec
|
#help For more information, see the project at https://github.com/clearlinux/autospec
|
||||||
autospec: pullrebase localreponotice clean-old-content
|
autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
||||||
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
||||||
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
@@ -406,6 +409,36 @@ install:
|
|||||||
done
|
done
|
||||||
@$(MAKE) loop-down DEVICE=6
|
@$(MAKE) loop-down DEVICE=6
|
||||||
|
|
||||||
|
#help install-debuginfo-local: Install locally built debuginfo RPM to
|
||||||
|
#help the automatic debuginfo cache location (/var/cache/debuginfo)
|
||||||
|
install-debuginfo-local:
|
||||||
|
tmpdir=$$(mktemp -d); \
|
||||||
|
rpm2cpio ${DEBUGINFO_RPM} | ( cd $$tmpdir; cpio -i -d -u); \
|
||||||
|
dest=/var/cache/debuginfo/lib; \
|
||||||
|
find $$tmpdir/usr/lib/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
||||||
|
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||||
|
sudo cp -a "$$d" $$dest/; \
|
||||||
|
done; \
|
||||||
|
dest=/var/cache/debuginfo/src; \
|
||||||
|
find $$tmpdir/usr/src/debug/ -mindepth 1 -maxdepth 1 | while read -r d; do \
|
||||||
|
sudo chown -R dbginfo:dbginfo "$$d"; \
|
||||||
|
sudo cp -a "$$d" $$dest/; \
|
||||||
|
done; \
|
||||||
|
sudo rm -rf $$tmpdir
|
||||||
|
|
||||||
|
#help install-local: Install locally built RPMs to the root filesystem. Note that the
|
||||||
|
#help debuginfo RPM installs to /var/cache/debuginfo
|
||||||
|
install-local:
|
||||||
|
for r in $(filter-out ${DEBUGINFO_RPM},${RPMS}); do \
|
||||||
|
rpm2cpio $$r | (cd /; sudo cpio -i -d -u); \
|
||||||
|
done
|
||||||
|
$(MAKE) install-debuginfo-local
|
||||||
|
|
||||||
|
#help install-mock: Install locally built RPMs to the mock rootcache
|
||||||
|
#help filesystem. This command is usually used with "make shell".
|
||||||
|
install-mock: repoadd
|
||||||
|
$(MOCK) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME) -i $(filter-out ${DEBUGINFO_RPM},${RPMS})
|
||||||
|
|
||||||
#help generateupstream: Run this rule to create or update the 'upstream' file
|
#help generateupstream: Run this rule to create or update the 'upstream' file
|
||||||
#help by downloading the upstream source tarballs listed in the spec file and
|
#help by downloading the upstream source tarballs listed in the spec file and
|
||||||
#help calculating their hashes. Autospec performs this step automatically, so
|
#help calculating their hashes. Autospec performs this step automatically, so
|
||||||
@@ -433,6 +466,15 @@ generateupstream:
|
|||||||
drop-abandoned: $(SPECFILE)
|
drop-abandoned: $(SPECFILE)
|
||||||
python3 $(TOPLVL)/projects/common/drop-abandoned-patches.py $(SPECFILE)
|
python3 $(TOPLVL)/projects/common/drop-abandoned-patches.py $(SPECFILE)
|
||||||
|
|
||||||
|
#help cloc: Count lines of code with the `cloc` tool on the full sources of package
|
||||||
|
cloc: $(SRPMFILE)
|
||||||
|
@$(MOCK) -r $(TOPLVL)/repo/clear.cfg $(SRPMFILE) --result=results/ --no-cleanup-after
|
||||||
|
@$(MOCK) --chroot --copyin /usr/bin/cloc /usr/bin/cloc --result=results/ --no-cleanup-after
|
||||||
|
@$(MOCK) --result=results/ --no-cleanup-after --chroot '/usr/bin/cloc /builddir > /tmp/cloc.txt'
|
||||||
|
@$(MOCK) --copyout /tmp/cloc.txt results/ --result=results/
|
||||||
|
@$(MOCK) --clean --scrub=chroot --uniqueext=$(PKG_NAME)
|
||||||
|
cat results/cloc.txt
|
||||||
|
|
||||||
# Define site local common targets in a separate makefile
|
# Define site local common targets in a separate makefile
|
||||||
-include $(TOPLVL)/projects/common/Makefile.common.site_local
|
-include $(TOPLVL)/projects/common/Makefile.common.site_local
|
||||||
|
|
||||||
|
|||||||
+15
-13
@@ -136,11 +136,11 @@ clean-pkgs-dir: $(PACKAGES_FILE)
|
|||||||
done
|
done
|
||||||
@echo "packages directory cleaned";
|
@echo "packages directory cleaned";
|
||||||
|
|
||||||
clean_PKGS = $(addprefix clean_,$(PKGS))
|
clean_PKGS = $(addprefix clean_,$(PKGS_LOCAL))
|
||||||
#help clean: Run 'make clean' for every package.
|
#help clean: Run 'make clean' for every package.
|
||||||
clean: $(clean_PKGS)
|
clean: $(clean_PKGS)
|
||||||
|
|
||||||
proper_PKGS = $(addprefix proper_,$(PKGS))
|
proper_PKGS = $(addprefix proper_,$(PKGS_LOCAL))
|
||||||
#help proper: Run 'make proper' for every package, and purge the local
|
#help proper: Run 'make proper' for every package, and purge the local
|
||||||
#help repo and image.
|
#help repo and image.
|
||||||
proper: $(proper_PKGS)
|
proper: $(proper_PKGS)
|
||||||
@@ -154,34 +154,34 @@ proper: $(proper_PKGS)
|
|||||||
|
|
||||||
$(clean_PKGS):
|
$(clean_PKGS):
|
||||||
@echo "cleaning $(patsubst clean_%,%,$@)"
|
@echo "cleaning $(patsubst clean_%,%,$@)"
|
||||||
-@$(MAKE) -s -j -C $(addprefix packages/,$(patsubst clean_%,%,$@)) clean
|
-@$(MAKE) -s -C $(addprefix packages/,$(patsubst clean_%,%,$@)) clean
|
||||||
|
|
||||||
$(proper_PKGS):
|
$(proper_PKGS):
|
||||||
-@$(MAKE) -s -j -C $(addprefix packages/,$(patsubst proper_%,%,$@)) proper
|
-@$(MAKE) -s -C $(addprefix packages/,$(patsubst proper_%,%,$@)) proper
|
||||||
|
|
||||||
#help status: Runs git status for all package repos, thus displaying untracked
|
#help status: Runs git status for all package repos, thus displaying untracked
|
||||||
#help and unstaged files in addition to staged files.
|
#help and unstaged files in addition to staged files.
|
||||||
status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS)); do \
|
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
if [ -d "$$p/.git" ] && [ -n "$$(git -C $$p status -uno --porcelain)" ]; then echo "Uncommitted changes in $$p:"; git -C "$$p" status --short; fi ;\
|
if [ -d "$$p/.git" ] && [ -n "$$(git -C $$p status -uno --porcelain)" ]; then echo "Uncommitted changes in $$p:"; git -C "$$p" status --short; fi ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help diff: Runs git diff for all package repos and displays the output using
|
#help diff: Runs git diff for all package repos and displays the output using
|
||||||
#help diffstat. Requires that diffstat is installed.
|
#help diffstat. Requires that diffstat is installed.
|
||||||
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS)); do \
|
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
(cd $$p ; git status | grep -q 'nothing to commit, working [^ ]* clean' || (echo "Uncommitted changes in: $$p"; git diff |diffstat -p1)) ;\
|
(cd $$p ; git status | grep -q 'nothing to commit, working [^ ]* clean' || (echo "Uncommitted changes in: $$p"; git diff |diffstat -p1)) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help versions: Displays the version of each package in the ./packages tree.
|
#help versions: Displays the version of each package in the ./packages tree.
|
||||||
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in $(addprefix packages/,$(PKGS)); do \
|
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}\n' *.spec | head -n1; fi) ;\
|
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}\n' *.spec | head -n1; fi) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help releases: Like 'make versions', but also displays the release number.
|
#help releases: Like 'make versions', but also displays the release number.
|
||||||
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in $(addprefix packages/,$(PKGS)); do \
|
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' *.spec | head -n1; fi) ;\
|
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' *.spec | head -n1; fi) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -190,13 +190,15 @@ releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS))
|
|||||||
provides:
|
provides:
|
||||||
@$(TOPLVL)/projects/common/provides.sh -f $(FP) -r $(RN)
|
@$(TOPLVL)/projects/common/provides.sh -f $(FP) -r $(RN)
|
||||||
|
|
||||||
|
preautospecnew-checks:
|
||||||
|
|
||||||
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
|
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
|
||||||
#help with NAME=$(NAME). Several files used by autospec will be created in the
|
#help with NAME=$(NAME). Several files used by autospec will be created in the
|
||||||
#help process.
|
#help process.
|
||||||
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options
|
||||||
#help to autospec.
|
#help to autospec.
|
||||||
#help For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
|
#help For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
|
||||||
autospecnew: localreponotice
|
autospecnew: preautospecnew-checks localreponotice
|
||||||
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
||||||
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
|||||||
|
# This file contains SPDX license identifiers that are not defined in the
|
||||||
|
# latest version of SPDX but still needed (or possibly needed) for Clear Linux
|
||||||
|
# packages.
|
||||||
|
GFDL-1.3+
|
||||||
|
MIT-Opengroup
|
||||||
|
WXwindows
|
||||||
|
w3c
|
||||||
+150
-87
@@ -1,56 +1,63 @@
|
|||||||
|
0BSD
|
||||||
AAL
|
AAL
|
||||||
Abstyles
|
|
||||||
Adobe-2006
|
|
||||||
Adobe-Glyph
|
|
||||||
ADSL
|
ADSL
|
||||||
AFL-1.1
|
AFL-1.1
|
||||||
AFL-1.2
|
AFL-1.2
|
||||||
AFL-2.0
|
AFL-2.0
|
||||||
AFL-2.1
|
AFL-2.1
|
||||||
AFL-3.0
|
AFL-3.0
|
||||||
Afmparse
|
|
||||||
AGPL-1.0
|
AGPL-1.0
|
||||||
|
AGPL-1.0-only
|
||||||
|
AGPL-1.0-or-later
|
||||||
AGPL-3.0
|
AGPL-3.0
|
||||||
Aladdin
|
AGPL-3.0-only
|
||||||
|
AGPL-3.0-or-later
|
||||||
AMDPLPA
|
AMDPLPA
|
||||||
AML
|
AML
|
||||||
AMPAS
|
AMPAS
|
||||||
ANTLR-PD
|
ANTLR-PD
|
||||||
Apache-1.0
|
|
||||||
Apache-1.1
|
|
||||||
Apache-2.0
|
|
||||||
APAFML
|
APAFML
|
||||||
APL-1.0
|
APL-1.0
|
||||||
APSL-1.0
|
APSL-1.0
|
||||||
APSL-1.1
|
APSL-1.1
|
||||||
APSL-1.2
|
APSL-1.2
|
||||||
APSL-2.0
|
APSL-2.0
|
||||||
|
Abstyles
|
||||||
|
Adobe-2006
|
||||||
|
Adobe-Glyph
|
||||||
|
Afmparse
|
||||||
|
Aladdin
|
||||||
|
Apache-1.0
|
||||||
|
Apache-1.1
|
||||||
|
Apache-2.0
|
||||||
Artistic-1.0
|
Artistic-1.0
|
||||||
Artistic-1.0-cl8
|
|
||||||
Artistic-1.0-Perl
|
Artistic-1.0-Perl
|
||||||
|
Artistic-1.0-cl8
|
||||||
Artistic-2.0
|
Artistic-2.0
|
||||||
|
BSD-1-Clause
|
||||||
|
BSD-2-Clause
|
||||||
|
BSD-2-Clause-FreeBSD
|
||||||
|
BSD-2-Clause-NetBSD
|
||||||
|
BSD-2-Clause-Patent
|
||||||
|
BSD-3-Clause
|
||||||
|
BSD-3-Clause-Attribution
|
||||||
|
BSD-3-Clause-Clear
|
||||||
|
BSD-3-Clause-LBNL
|
||||||
|
BSD-3-Clause-No-Nuclear-License
|
||||||
|
BSD-3-Clause-No-Nuclear-License-2014
|
||||||
|
BSD-3-Clause-No-Nuclear-Warranty
|
||||||
|
BSD-4-Clause
|
||||||
|
BSD-4-Clause-UC
|
||||||
|
BSD-Protection
|
||||||
|
BSD-Source-Code
|
||||||
|
BSL-1.0
|
||||||
Bahyph
|
Bahyph
|
||||||
Barr
|
Barr
|
||||||
Beerware
|
Beerware
|
||||||
BitTorrent-1.0
|
BitTorrent-1.0
|
||||||
BitTorrent-1.1
|
BitTorrent-1.1
|
||||||
Borceux
|
Borceux
|
||||||
BSD-2-Clause
|
|
||||||
BSD-2-Clause-FreeBSD
|
|
||||||
BSD-2-Clause-NetBSD
|
|
||||||
BSD-3-Clause
|
|
||||||
BSD-3-Clause-Attribution
|
|
||||||
BSD-3-Clause-Clear
|
|
||||||
BSD-3-Clause-LBNL
|
|
||||||
BSD-4-Clause
|
|
||||||
BSD-4-Clause-UC
|
|
||||||
BSD-Protection
|
|
||||||
BSL-1.0
|
|
||||||
bzip2-1.0.5
|
|
||||||
bzip2-1.0.6
|
|
||||||
Caldera
|
|
||||||
CATOSL-1.1
|
CATOSL-1.1
|
||||||
CC0-1.0
|
|
||||||
CC-BY-1.0
|
CC-BY-1.0
|
||||||
CC-BY-2.0
|
CC-BY-2.0
|
||||||
CC-BY-2.5
|
CC-BY-2.5
|
||||||
@@ -81,96 +88,117 @@ CC-BY-SA-2.0
|
|||||||
CC-BY-SA-2.5
|
CC-BY-SA-2.5
|
||||||
CC-BY-SA-3.0
|
CC-BY-SA-3.0
|
||||||
CC-BY-SA-4.0
|
CC-BY-SA-4.0
|
||||||
|
CC0-1.0
|
||||||
CDDL-1.0
|
CDDL-1.0
|
||||||
CDDL-1.1
|
CDDL-1.1
|
||||||
|
CDLA-Permissive-1.0
|
||||||
|
CDLA-Sharing-1.0
|
||||||
CECILL-1.0
|
CECILL-1.0
|
||||||
CECILL-1.1
|
CECILL-1.1
|
||||||
CECILL-2.0
|
CECILL-2.0
|
||||||
|
CECILL-2.1
|
||||||
CECILL-B
|
CECILL-B
|
||||||
CECILL-C
|
CECILL-C
|
||||||
ClArtistic
|
CNRI-Jython
|
||||||
CNRI-Python
|
CNRI-Python
|
||||||
CNRI-Python-GPL-Compatible
|
CNRI-Python-GPL-Compatible
|
||||||
Condor-1.1
|
|
||||||
CPAL-1.0
|
CPAL-1.0
|
||||||
CPL-1.0
|
CPL-1.0
|
||||||
CPOL-1.02
|
CPOL-1.02
|
||||||
Crossword
|
|
||||||
CUA-OPL-1.0
|
CUA-OPL-1.0
|
||||||
|
Caldera
|
||||||
|
ClArtistic
|
||||||
|
Condor-1.1
|
||||||
|
Crossword
|
||||||
|
CrystalStacker
|
||||||
Cube
|
Cube
|
||||||
D-FSL-1.0
|
D-FSL-1.0
|
||||||
diffmark
|
|
||||||
DOC
|
DOC
|
||||||
Dotseqn
|
|
||||||
DSDP
|
DSDP
|
||||||
dvipdfm
|
Dotseqn
|
||||||
ECL-1.0
|
ECL-1.0
|
||||||
ECL-2.0
|
ECL-2.0
|
||||||
eCos-2.0
|
|
||||||
EFL-1.0
|
EFL-1.0
|
||||||
EFL-2.0
|
EFL-2.0
|
||||||
eGenix
|
|
||||||
Entessa
|
|
||||||
EPL-1.0
|
EPL-1.0
|
||||||
ErlPL-1.1
|
EPL-2.0
|
||||||
EUDatagrid
|
EUDatagrid
|
||||||
EUPL-1.0
|
EUPL-1.0
|
||||||
EUPL-1.1
|
EUPL-1.1
|
||||||
|
EUPL-1.2
|
||||||
|
Entessa
|
||||||
|
ErlPL-1.1
|
||||||
Eurosym
|
Eurosym
|
||||||
Fair
|
FSFAP
|
||||||
Frameworx-1.0
|
|
||||||
FreeImage
|
|
||||||
FSFUL
|
FSFUL
|
||||||
FSFULLR
|
FSFULLR
|
||||||
FTL
|
FTL
|
||||||
|
Fair
|
||||||
|
Frameworx-1.0
|
||||||
|
FreeImage
|
||||||
GFDL-1.1
|
GFDL-1.1
|
||||||
|
GFDL-1.1-only
|
||||||
|
GFDL-1.1-or-later
|
||||||
GFDL-1.2
|
GFDL-1.2
|
||||||
|
GFDL-1.2-only
|
||||||
|
GFDL-1.2-or-later
|
||||||
GFDL-1.3
|
GFDL-1.3
|
||||||
GFDL-1.3+
|
GFDL-1.3-only
|
||||||
Giftware
|
GFDL-1.3-or-later
|
||||||
GL2PS
|
GL2PS
|
||||||
Glide
|
|
||||||
Glulxe
|
|
||||||
gnuplot
|
|
||||||
GPL-1.0
|
GPL-1.0
|
||||||
GPL-1.0+
|
GPL-1.0+
|
||||||
|
GPL-1.0-only
|
||||||
|
GPL-1.0-or-later
|
||||||
GPL-2.0
|
GPL-2.0
|
||||||
GPL-2.0+
|
GPL-2.0+
|
||||||
|
GPL-2.0-only
|
||||||
|
GPL-2.0-or-later
|
||||||
|
GPL-2.0-with-GCC-exception
|
||||||
GPL-2.0-with-autoconf-exception
|
GPL-2.0-with-autoconf-exception
|
||||||
GPL-2.0-with-bison-exception
|
GPL-2.0-with-bison-exception
|
||||||
GPL-2.0-with-classpath-exception
|
GPL-2.0-with-classpath-exception
|
||||||
GPL-2.0-with-font-exception
|
GPL-2.0-with-font-exception
|
||||||
GPL-2.0-with-GCC-exception
|
|
||||||
GPL-3.0
|
GPL-3.0
|
||||||
GPL-3.0+
|
GPL-3.0+
|
||||||
GPL-3.0-with-autoconf-exception
|
GPL-3.0-only
|
||||||
|
GPL-3.0-or-later
|
||||||
GPL-3.0-with-GCC-exception
|
GPL-3.0-with-GCC-exception
|
||||||
gSOAP-1.3b
|
GPL-3.0-with-autoconf-exception
|
||||||
HaskellReport
|
Giftware
|
||||||
|
Glide
|
||||||
|
Glulxe
|
||||||
HPND
|
HPND
|
||||||
|
HaskellReport
|
||||||
IBM-pibs
|
IBM-pibs
|
||||||
ICU
|
ICU
|
||||||
IJG
|
IJG
|
||||||
ImageMagick
|
|
||||||
iMatix
|
|
||||||
Imlib2
|
|
||||||
Intel
|
|
||||||
Intel-ACPI
|
|
||||||
IPA
|
IPA
|
||||||
IPL-1.0
|
IPL-1.0
|
||||||
ISC
|
ISC
|
||||||
JasPer-2.0
|
ImageMagick
|
||||||
|
Imlib2
|
||||||
|
Info-ZIP
|
||||||
|
Intel
|
||||||
|
Intel-ACPI
|
||||||
|
Interbase-1.0
|
||||||
JSON
|
JSON
|
||||||
Latex2e
|
JasPer-2.0
|
||||||
Leptonica
|
LAL-1.2
|
||||||
|
LAL-1.3
|
||||||
LGPL-2.0
|
LGPL-2.0
|
||||||
LGPL-2.0+
|
LGPL-2.0+
|
||||||
|
LGPL-2.0-only
|
||||||
|
LGPL-2.0-or-later
|
||||||
LGPL-2.1
|
LGPL-2.1
|
||||||
LGPL-2.1+
|
LGPL-2.1+
|
||||||
|
LGPL-2.1-only
|
||||||
|
LGPL-2.1-or-later
|
||||||
LGPL-3.0
|
LGPL-3.0
|
||||||
LGPL-3.0+
|
LGPL-3.0+
|
||||||
Libpng
|
LGPL-3.0-only
|
||||||
libtiff
|
LGPL-3.0-or-later
|
||||||
|
LGPLLR
|
||||||
LPL-1.0
|
LPL-1.0
|
||||||
LPL-1.02
|
LPL-1.02
|
||||||
LPPL-1.0
|
LPPL-1.0
|
||||||
@@ -178,17 +206,20 @@ LPPL-1.1
|
|||||||
LPPL-1.2
|
LPPL-1.2
|
||||||
LPPL-1.3a
|
LPPL-1.3a
|
||||||
LPPL-1.3c
|
LPPL-1.3c
|
||||||
MakeIndex
|
Latex2e
|
||||||
MirOS
|
Leptonica
|
||||||
|
LiLiQ-P-1.1
|
||||||
|
LiLiQ-R-1.1
|
||||||
|
LiLiQ-Rplus-1.1
|
||||||
|
Libpng
|
||||||
|
Linux-OpenIB
|
||||||
MIT
|
MIT
|
||||||
MIT-advertising
|
MIT-0
|
||||||
MIT-CMU
|
MIT-CMU
|
||||||
|
MIT-advertising
|
||||||
MIT-enna
|
MIT-enna
|
||||||
MIT-feh
|
MIT-feh
|
||||||
MIT-Opengroup
|
|
||||||
MITNFA
|
MITNFA
|
||||||
Motosoto
|
|
||||||
mpich2
|
|
||||||
MPL-1.0
|
MPL-1.0
|
||||||
MPL-1.1
|
MPL-1.1
|
||||||
MPL-2.0
|
MPL-2.0
|
||||||
@@ -196,26 +227,33 @@ MPL-2.0-no-copyleft-exception
|
|||||||
MS-PL
|
MS-PL
|
||||||
MS-RL
|
MS-RL
|
||||||
MTLL
|
MTLL
|
||||||
|
MakeIndex
|
||||||
|
MirOS
|
||||||
|
Motosoto
|
||||||
Multics
|
Multics
|
||||||
Mup
|
Mup
|
||||||
NASA-1.3
|
NASA-1.3
|
||||||
Naumen
|
|
||||||
NBPL-1.0
|
NBPL-1.0
|
||||||
NCSA
|
NCSA
|
||||||
NetCDF
|
|
||||||
Newsletr
|
|
||||||
NGPL
|
NGPL
|
||||||
|
NLOD-1.0
|
||||||
NLPL
|
NLPL
|
||||||
Nokia
|
|
||||||
NOSL
|
NOSL
|
||||||
Noweb
|
|
||||||
NPL-1.0
|
NPL-1.0
|
||||||
NPL-1.1
|
NPL-1.1
|
||||||
NPOSL-3.0
|
NPOSL-3.0
|
||||||
NRL
|
NRL
|
||||||
NTP
|
NTP
|
||||||
|
Naumen
|
||||||
|
Net-SNMP
|
||||||
|
NetCDF
|
||||||
|
Newsletr
|
||||||
|
Nokia
|
||||||
|
Noweb
|
||||||
Nunit
|
Nunit
|
||||||
|
OCCT-PL
|
||||||
OCLC-2.0
|
OCLC-2.0
|
||||||
|
ODC-By-1.0
|
||||||
ODbL-1.0
|
ODbL-1.0
|
||||||
OFL-1.0
|
OFL-1.0
|
||||||
OFL-1.1
|
OFL-1.1
|
||||||
@@ -237,77 +275,102 @@ OLDAP-2.6
|
|||||||
OLDAP-2.7
|
OLDAP-2.7
|
||||||
OLDAP-2.8
|
OLDAP-2.8
|
||||||
OML
|
OML
|
||||||
OpenSSL
|
|
||||||
OPL-1.0
|
OPL-1.0
|
||||||
|
OSET-PL-2.1
|
||||||
OSL-1.0
|
OSL-1.0
|
||||||
OSL-1.1
|
OSL-1.1
|
||||||
OSL-2.0
|
OSL-2.0
|
||||||
OSL-2.1
|
OSL-2.1
|
||||||
OSL-3.0
|
OSL-3.0
|
||||||
|
OpenSSL
|
||||||
PDDL-1.0
|
PDDL-1.0
|
||||||
PHP-3.0
|
PHP-3.0
|
||||||
PHP-3.01
|
PHP-3.01
|
||||||
Plexus
|
Plexus
|
||||||
PostgreSQL
|
PostgreSQL
|
||||||
psfrag
|
|
||||||
psutils
|
|
||||||
Python-2.0
|
Python-2.0
|
||||||
Qhull
|
|
||||||
QPL-1.0
|
QPL-1.0
|
||||||
Rdisc
|
Qhull
|
||||||
RHeCos-1.1
|
RHeCos-1.1
|
||||||
RPL-1.1
|
RPL-1.1
|
||||||
RPL-1.5
|
RPL-1.5
|
||||||
RPSL-1.0
|
RPSL-1.0
|
||||||
|
RSA-MD
|
||||||
RSCPL
|
RSCPL
|
||||||
|
Rdisc
|
||||||
Ruby
|
Ruby
|
||||||
Saxpath
|
|
||||||
SAX-PD
|
SAX-PD
|
||||||
SCEA
|
SCEA
|
||||||
SGI-B-1.0
|
SGI-B-1.0
|
||||||
SGI-B-1.1
|
SGI-B-1.1
|
||||||
SGI-B-2.0
|
SGI-B-2.0
|
||||||
SimPL-2.0
|
|
||||||
SISSL
|
SISSL
|
||||||
SISSL-1.2
|
SISSL-1.2
|
||||||
Sleepycat
|
|
||||||
SMLNJ
|
SMLNJ
|
||||||
|
SMPPL
|
||||||
SNIA
|
SNIA
|
||||||
SPL-1.0
|
SPL-1.0
|
||||||
|
SWL
|
||||||
|
Saxpath
|
||||||
|
Sendmail
|
||||||
|
SimPL-2.0
|
||||||
|
Sleepycat
|
||||||
|
Spencer-86
|
||||||
|
Spencer-94
|
||||||
|
Spencer-99
|
||||||
StandardML-NJ
|
StandardML-NJ
|
||||||
SugarCRM-1.1.3
|
SugarCRM-1.1.3
|
||||||
SWL
|
|
||||||
TCL
|
TCL
|
||||||
|
TCP-wrappers
|
||||||
TMate
|
TMate
|
||||||
TORQUE-1.1
|
TORQUE-1.1
|
||||||
TOSL
|
TOSL
|
||||||
|
TU-Berlin-1.0
|
||||||
|
TU-Berlin-2.0
|
||||||
|
UPL-1.0
|
||||||
|
Unicode-DFS-2015
|
||||||
|
Unicode-DFS-2016
|
||||||
Unicode-TOU
|
Unicode-TOU
|
||||||
Unlicense
|
Unlicense
|
||||||
Vim
|
|
||||||
VOSTROM
|
VOSTROM
|
||||||
VSL-1.0
|
VSL-1.0
|
||||||
|
Vim
|
||||||
W3C
|
W3C
|
||||||
W3C-19980720
|
W3C-19980720
|
||||||
|
W3C-20150513
|
||||||
|
WTFPL
|
||||||
Watcom-1.0
|
Watcom-1.0
|
||||||
Wsuipa
|
Wsuipa
|
||||||
WTFPL
|
|
||||||
WXwindows
|
|
||||||
X11
|
X11
|
||||||
Xerox
|
|
||||||
XFree86-1.1
|
XFree86-1.1
|
||||||
xinetd
|
|
||||||
Xnet
|
|
||||||
xpp
|
|
||||||
XSkat
|
XSkat
|
||||||
|
Xerox
|
||||||
|
Xnet
|
||||||
YPL-1.0
|
YPL-1.0
|
||||||
YPL-1.1
|
YPL-1.1
|
||||||
|
ZPL-1.1
|
||||||
|
ZPL-2.0
|
||||||
|
ZPL-2.1
|
||||||
Zed
|
Zed
|
||||||
Zend-2.0
|
Zend-2.0
|
||||||
Zimbra-1.3
|
Zimbra-1.3
|
||||||
Zimbra-1.4
|
Zimbra-1.4
|
||||||
Zlib
|
Zlib
|
||||||
|
bzip2-1.0.5
|
||||||
|
bzip2-1.0.6
|
||||||
|
curl
|
||||||
|
diffmark
|
||||||
|
dvipdfm
|
||||||
|
eCos-2.0
|
||||||
|
eGenix
|
||||||
|
gSOAP-1.3b
|
||||||
|
gnuplot
|
||||||
|
iMatix
|
||||||
|
libtiff
|
||||||
|
mpich2
|
||||||
|
psfrag
|
||||||
|
psutils
|
||||||
|
wxWindows
|
||||||
|
xinetd
|
||||||
|
xpp
|
||||||
zlib-acknowledgement
|
zlib-acknowledgement
|
||||||
ZPL-1.1
|
|
||||||
ZPL-2.0
|
|
||||||
ZPL-2.1
|
|
||||||
w3c
|
|
||||||
|
|||||||
+9
-1
@@ -43,11 +43,19 @@ if [ ! -f "$IMAGE" ]; then
|
|||||||
fi
|
fi
|
||||||
rm -f debug.log
|
rm -f debug.log
|
||||||
|
|
||||||
|
# 10/25/2018: keep back compatibility for a while
|
||||||
|
UEFI_BIOS="-bios OVMF.fd"
|
||||||
|
|
||||||
|
if [ -f OVMF_VARS.fd -a -f OVMF_CODE.fd ]; then
|
||||||
|
UEFI_BIOS=" -drive file=OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on "
|
||||||
|
UEFI_BIOS+=" -drive file=OVMF_VARS.fd,if=pflash,format=raw,unit=1 "
|
||||||
|
fi
|
||||||
|
|
||||||
VMN=${VMN:=1}
|
VMN=${VMN:=1}
|
||||||
|
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-enable-kvm \
|
-enable-kvm \
|
||||||
-bios OVMF.fd \
|
${UEFI_BIOS} \
|
||||||
-smp sockets=1,cpus=4,cores=2 -cpu host \
|
-smp sockets=1,cpus=4,cores=2 -cpu host \
|
||||||
-m 1024 \
|
-m 1024 \
|
||||||
-vga none -nographic \
|
-vga none -nographic \
|
||||||
|
|||||||
+12
-3
@@ -6,6 +6,7 @@ SERVERCA=""
|
|||||||
CLIENTCA=""
|
CLIENTCA=""
|
||||||
WORKSPACE="clearlinux"
|
WORKSPACE="clearlinux"
|
||||||
PACKAGE_REPOS=
|
PACKAGE_REPOS=
|
||||||
|
NEEDS_KVM_GROUP=
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
|
printf "%s\n" >&2 "Usage: $SCRIPT [options]" \
|
||||||
@@ -115,6 +116,10 @@ required_progs() {
|
|||||||
|
|
||||||
required_progs
|
required_progs
|
||||||
|
|
||||||
|
if ! groups | grep -qw kvm; then
|
||||||
|
NEEDS_KVM_GROUP=1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Initializing development workspace in \"$WORKSPACE\" . . ."
|
echo "Initializing development workspace in \"$WORKSPACE\" . . ."
|
||||||
|
|
||||||
mkdir "$WORKSPACE"
|
mkdir "$WORKSPACE"
|
||||||
@@ -146,8 +151,10 @@ if [ "$USE_KOJI" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Adding user to kvm group . . ."
|
if [ -n "$NEEDS_KVM_GROUP" ]; then
|
||||||
sudo usermod -a -G kvm $USER
|
echo "Adding user to kvm group . . ."
|
||||||
|
sudo usermod -a -G kvm $USER
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Cloning special project repositories . . ."
|
echo "Cloning special project repositories . . ."
|
||||||
make ${JOBS_ARG} clone-projects
|
make ${JOBS_ARG} clone-projects
|
||||||
@@ -179,7 +186,9 @@ if [ -z "$PACKAGE_REPOS" ]; then
|
|||||||
echo "NOTE: To clone all package repos, run \"cd $WORKSPACE; make [-j NUM] clone-packages\""
|
echo "NOTE: To clone all package repos, run \"cd $WORKSPACE; make [-j NUM] clone-packages\""
|
||||||
echo "NOTE: To clone a single package repo with NAME, run \"cd $WORKSPACE; make clone_NAME\""
|
echo "NOTE: To clone a single package repo with NAME, run \"cd $WORKSPACE; make clone_NAME\""
|
||||||
fi
|
fi
|
||||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
if [ -n "$NEEDS_KVM_GROUP" ]; then
|
||||||
|
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# vi: ft=sh sw=2 et sts=2
|
# vi: ft=sh sw=2 et sts=2
|
||||||
|
|||||||
Reference in New Issue
Block a user