* first try to fix#700
Use CMAKE_INSTALL_PREFIX for install paths
* check IS_DIRECTORY LIB_INSTALL_DIR
* fix incorrect VAR usage in condition
* changed debian/rules according to @bluca patch
* Use https for debian/copyright
* Update dates and fix stanzas in debian/copyright
No need to have 2 stanzas for the same license
* Add BSD-3-clause body in debian/copyright
* Remove generated boilerplate from debian/rules
* Enable compiler hardening flags in debian/rules
* Fix source package name according to repo and docs
* Set source package section to electronics
See https://packages.debian.org/unstable/electronics/ for a full list
* Add long descriptions to packages
* Add gbp.conf file
* Update changelog for 1.5.0 release
* Remove dirs files, not needed anymore
* Rename library package to match SONAME
As per Debian policy, shared library packages must be named after
their SONAME version.
* libstlink0: break+replace libstlink since it took over its files
* Remove triggers, not needed anymore
debhelper tools will generate the triggers file automatically since
the package name was corrected
* List GPL2+ in debian/copyright for flashloaders
* Do not append -shared to shared library on *NIX
Only on Windows it's necessary to have different file names, on *NIX
the extension is what disambiguates between a static library (.a) and
a shared library (.so).
* Clarify license of flashloaders in README.md
Fixes#682
* List all individual authors in debian/copyright
The Debian FTP masters nowadays require that all authors are listed in
debian/copyright. Print the list of authors from git.
* Move modprobe and udev files from shared library package to tools package
Multiple versions of a shared library might be installed on the same
system. Do not ship unversioned files in their packages, or they will
conflict and fail to install.
* stlink-tools: break+replace libstlink
It took ownership of udev and modprobe files from libstlink
* Fix pkgconfig include dir: remove project version
The headers are installed in /usr/include/stlink without a version
number.
* Add libstlink1 symbols file
Generated with:
dpkg-gensymbols -P/tmp -v1.5.0 -V -e/tmp/libstlink.so.1.5.0
-plibstlink1 -Odebian/libstlink1.symbols
* Bump Standards-Version to 4.1.3
Main changes are shared library rename and files moved, and HTTPS
URLs.
https://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt
* Add debian/watch file for notifications
The Debian package tracker can automatically notify when a new
version is out.
After installing the deb package, st-util fails to start:
> $ st-util
> st-util: error while loading shared libraries: libstlink-shared.so.1:
> cannot open shared object file: No such file or directory
The reason is, no one ran `ldconfig` upon installing the library.
The solution, as per latest Debian recommendations [1], is to add an
ldconfig trigger in debian/triggers, which is what this commit does.
[1] https://www.debian.org/doc/debian-policy/#ldconfig
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
* cmake: Fix location of modprobe.d config.
* cmake: Use cmake variables for install locations.
This commit add the following two Cmake variables to
change the install location of the udev and modprobe
configuration files:
- STLINK_UDEV_RULES_DIR
- STLINK_MODPROBED_DIR
* doc/compiling.md: Add info about new CMAKE variables.
* debian: Use CMAKE variables for build.
The top-level makefile that was used to drive cmake broke the autodetection
of the used buildsystem by debhelper. This commit fixes it and moves most
of the installation stuff to CMakeLists.txt to keep debian/ folder contents
to the bare minimum.
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
Override dh_auto_install to use *.install files as they are.
The debian/*.install could contain source to destination format too,
but that would be much more difficult to handle with multi-arch.
Add debian copyright file.
Add stlink-tools manpages.
Insert homepage link.
Add library dependencies to binaries.
Add howto debuild to README.
Install udev rules.
Install modprobe config for usb module.
Configure cmake with /usr prefix and compile release variant.