diff --git a/.gitignore b/.gitignore index 80de0771..192d48c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,134 +1,135 @@ /.idea _*.c _*.h *.o *.a *.gcno *.gcda cov.txt *.dSYM *Tests-Listing.xml *Tests-Results.xml VERSION /.project /.cproject .*.sw? *~ /src/vendor .vagrant/ # compiled or derived files install/db/dbcreate install/defconf/Db.conf install/defconf/fossology.conf install/fo-postinstall src/adj2nest/agent/adj2nest src/buckets/agent/buckets src/cli/cp2foss src/cli/cp2foss.1 src/cli/cp2foss.html src/cli/cp2foss.txt src/cli/fo_bucket_list src/cli/fo_chmod src/cli/fo_copyright_list src/cli/fo_folder src/cli/fo_nomos_license_list src/cli/fo_wrapper.php src/cli/fossjobs src/cli/fossjobs.1 src/cli/fossjobs.html src/cli/fossjobs.txt src/cli/schema-export src/cli/tests/cli-Xunit.xml src/cli/testupdate2.php src/cli/fo_import_licenses src/cli/fo_usergroup src/cli/fossupload_status src/copyright/agent/copyright src/copyright/agent_tests/Functional/copyright src/copyright/agent_tests/Unit/test_copyright src/delagent/agent/delagent src/demomod/agent/demomod src/lib/c/fossconfigTest src/lib/c/libdb.patch src/lib/c/reppath src/lib/c/sqlCopyTest src/lib/c/tests/lib-c-Listing.xml src/lib/c/tests/lib-c-Results.xml src/lib/c/tests/testlibs src/lib/cpp/tests/test_libcpp src/lib/php/tests/lib-php-Xunit-Results.xml src/lib/php/bootstrap.php src/lib/php/services.xml src/lib/php/id.patch src/maintagent/agent/maintagent src/mimetype/mimetype src/mimetype/agent/mimetype src/mimetype/agent_tests/Unit/test_mimetype src/monk/agent/_squareVisitor.h.gen src/monk/agent/monk src/monk/agent/monk_cov src/monk/agent/monkbulk_cov src/monk/agent/squareBuilder src/monk/agent_tests/Unit/results/ src/monk/agent_tests/Unit/test_monk src/monk/agent_tests/Unit/run_tests src/monk/agent_tests/Functional/monk-Xunit1.xml src/monk/agent_tests/Functional/monk-Xunit2.xml src/monk/agent_tests/Functional/monk-Xunit3.xml src/nomos/agent_tests/Functional/LastGoodNomosTestfilesScan.s src/nomos/agent_tests/Functional/scan.out src/nomos/agent_tests/Functional/scan.out.r src/nomos/agent_tests/Functional/scan.out.s src/nomos/agent/_STRFILTER src/nomos/agent/_autodefs.h src/nomos/agent/_strings.data src/nomos/agent/checkstr.OK src/nomos/agent/encode src/nomos/agent/nomos src/nomos/agent/nomos_drdebug src/nomos/agent/nomos_proctrace src/nomos/agent/nomossa src/nomos/agent/split.OTHER src/nomos/agent/strings.HISTOGRAM src/nomos/agent/words.HISTOGRAM src/nomos/agent_nosig/ src/nomos/agent_tests/Functional/fossology.rc src/nomos/agent_tests/Functional/nomos-Xunit.xml src/nomos/agent_tests/Functional/nomos-regression-test.html src/nomos/agent_tests/Functional/report.d src/nomos/agent_tests/Unit/test_nomos src/pkgagent/agent/pkgagent src/scheduler/agent/defconf/init.d/fossology src/scheduler/agent/fo_cli src/scheduler/agent/fo_scheduler src/scheduler/agent_tests/Unit/test_scheduler src/scheduler/agent_tests/agents/Db.conf src/scheduler/agent_tests/agents/fossology.conf src/scheduler/agent_tests/agents/fossology.log src/scheduler/agent_tests/agents/mods-enabled/ src/scheduler/agent_tests/agents/variables.list src/ununpack/agent/departition src/ununpack/agent/ununpack src/wget_agent/agent/wget_agent variable.list /nbproject/private/ /src/monk/VERSION-monk /src/monk/VERSION-monkbulk /src/monk/agent/monkbulk /src/deciderjob/agent/deciderjob /src/deciderjob/agent/version.php /src/decider/agent/decider /src/decider/agent/version.php /testReport/ /src/readmeoss/agent/version.php /src/reuser/agent/version.php /src/copyright/agent/ecc /src/copyright/VERSION-ecc /src/copyright/VERSION-copyright /src/spdx2/agent_tests/Functional/spdx-tools-2.0.2-jar-with-dependencies.jar /src/spdx2/agent/version.php /src/spdx2/agent/spdx2 /src/ninka/agent_tests/Functional/ninka /src/ninka/agent_tests/Unit/test_ninka /src/ninka/agent/ninka +.pc diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..11acfc2b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +fossology (3.1-1) unstable; urgency=medium + + * Initial release + + -- Antoine R. Dumont (@ardumont) Mon, 14 Nov 2016 17:01:56 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..53c1e108 --- /dev/null +++ b/debian/control @@ -0,0 +1,28 @@ +Source: fossology +Section: utils +Priority: extra +Maintainer: Antoine R. Dumont (@ardumont) +Build-Depends: autoconf, + automake, + autotools-dev, + pkg-config, + debhelper (>= 9), + dh-autoreconf, + dpkg (>= 1.17.27~), + libglib2.0-dev, + libpq-dev +Standards-Version: 3.9.8 + + +Package: fossology-nomossa +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Provides: nomossa +Description: architecture for analyzing software, nomos standalone + The FOSSology project is a web based framework that allows you to + upload software to be picked apart and then analyzed by software + agents which produce results that are then browsable via the web + interface. Existing agents include license analysis, metadata + extraction, and MIME type identification. + . + This package contains the nomos agent programs and their resources. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..82dd23b3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,11 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fossology +Source: https://github.com/fossology/fossology + +Files: * +Copyright: 2007-2012 HP Development Company, L.P. and others. +License: GPL-2+ + +Files: libfossdb, libfossrepo +Copyright: 2007-2012 HP Development Company, L.P. and others. +License: LGP-2+ diff --git a/debian/docs b/debian/docs new file mode 100644 index 00000000..b43bf86b --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/patches/fix-version-number b/debian/patches/fix-version-number new file mode 100644 index 00000000..fcd57ee0 --- /dev/null +++ b/debian/patches/fix-version-number @@ -0,0 +1,17 @@ +Index: fossology/Makefile.conf +=================================================================== +--- fossology.orig/Makefile.conf ++++ fossology/Makefile.conf +@@ -132,9 +132,9 @@ FO_CXXFLAGS = -I$(CXXFOLIBDIR) $(FO_CFLA + FO_CXXLDFLAGS = -lfossologyCPP -L$(CXXFOLIBDIR) -lstdc++ $(FO_LDFLAGS) + + # define VERSION and COMMIT_ID +-VERSION=`git describe --tags > /dev/null 2>&1 && git describe --tags | head -1 || echo "unknown"` +-BRANCH=`git rev-parse --abbrev-ref HEAD > /dev/null 2>&1 && git rev-parse --abbrev-ref HEAD | head -1 || echo "unknown"` +-COMMIT_HASH=`git show > /dev/null 2>&1 && git show | head -1 | awk '{print substr($$2,1,6)}' || echo "unknown"` ++VERSION=3.1.0rc2-31-ga2cbb8c ++BRANCH=master ++COMMIT_HASH=a2cbb8c + + export PATH := $(TOP)/src/vendor/bin:$(PATH) + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..02fa2328 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-version-number diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..0c0deefe --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +# export DH_VERBOSE=1 +DPKG_EXPORT_BUILDFLAGS = 1 + +export DEB_BUILD_OPTIONS = nocheck +# export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +%: + dh $@ + +override_dh_auto_build: + cd src/nomos/agent/ && make -f Makefile.sa all + +override_dh_auto_install: + dh_install src/nomos/agent/nomossa usr/bin + +# override_dh_auto_install: +# cd src/nomos/agent && make -f Makefile.sa install MODDIR=debian/tmp/usr/bin diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)