diff --git a/.github/workflows/build-deb.yaml b/.github/workflows/build-deb.yaml new file mode 100644 index 0000000..39233b8 --- /dev/null +++ b/.github/workflows/build-deb.yaml @@ -0,0 +1,106 @@ +name: Build and Publish Debian Package + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + env: + DEB_BUILD_OPTIONS: nocheck # or whatever options you need + strategy: + matrix: + distro: [debian-bookworm, debian-bullseye, ubuntu-24.04, ubuntu-22.04] + include: + - distro: debian-bookworm + image: debian:bookworm + os: debian + version: bookworm + - distro: debian-bullseye + image: debian:bullseye + os: debian + version: bullseye + - distro: ubuntu-24.04 + image: ubuntu:24.04 + os: ubuntu + version: noble + - distro: ubuntu-22.04 + image: ubuntu:22.04 + os: ubuntu + version: jammy + container: + image: ${{ matrix.image }} + steps: + - name: Setup dependencies + run: | + apt-get update + apt-get install -y build-essential devscripts debhelper autotools-dev autoconf-archive \ + pkg-config fakeroot sed git tar gzip python3-pip python3-venv curl jq libyaml-cpp-dev + + curl -1sLf 'https://dl.cloudsmith.io/basic/robertburger/common/setup.deb.sh' | bash + curl -1sLf 'https://dl.cloudsmith.io/basic/robertburger/robotkernel/setup.deb.sh' | bash + apt-get update + apt-get install -y libethercat-dev libosal-dev robotkernel-service-helper robotkernel-dev \ + service-provider-canopen-protocol-dev \ + service-provider-file-protocol-dev \ + service-provider-key-value-dev \ + service-provider-memory-inspection-dev \ + service-provider-process-data-inspection-dev \ + service-provider-sercos-protocol-dev + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Mark working directory as safe + run: git config --global --add safe.directory $GITHUB_WORKSPACE + + - name: update branch name + run: | + VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: //p') + sed "s|PACKAGE_VERSION|$VERSION|" configure.ac.in > configure.ac + env: + GITHUB_REF_NAME: ${{ github.ref_name }} + + - name: Build .deb package + run: | + # baue mit dpkg-buildpackage (ohne signieren) + dpkg-buildpackage -us -uc -d + + - name: Collect .deb artifact + run: | + mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }} + mv ../module-ethercat*.deb artifacts/${{ matrix.os }}/${{ matrix.version }} + + - name: Set sanitized image name + id: sanitize + run: | + version=$(dpkg-parsechangelog | sed -n 's/^Version: //p') + echo "sanitized_image=$(echo "$version-$IMAGE" | tr '/:' '--')" >> $GITHUB_OUTPUT + env: + IMAGE: ${{ matrix.image }} + + - name: Upload .deb package + uses: actions/upload-artifact@v4 + with: + name: module-ethercat-${{ steps.sanitize.outputs.sanitized_image }}.deb + path: artifacts/${{ matrix.os }}/${{ matrix.version }}/*.deb + + - name: Upload to Cloudsmith (${{ matrix.os }}/${{ matrix.version }}) + env: + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} + shell: bash + run: | + VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: //p') + FILENAME="artifacts/${{ matrix.os }}/${{ matrix.version }}/module-ethercat_${VERSION}_amd64.deb" + + python3 -m venv cloudsmith + cd cloudsmith + source bin/activate + + python3 -m pip install --upgrade pip + pip3 install cloudsmith-cli + + cloudsmith push deb robertburger/robotkernel/${{ matrix.os }}/${{ matrix.version }} ../${FILENAME} \ + --republish \ + --api-key "$CLOUDSMITH_API_KEY" + diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..a154637 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +safe_branch=$(git describe --tags | tr '/:' '--') + +sed "s|PACKAGE_VERSION|$safe_branch|" configure.ac.in > configure.ac diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..341fb91 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +libosal for Debian +----------------- + + + + -- Robert Burger Tue, 30 May 2023 06:09:28 +0200 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..4bcbaff --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +libosal for Debian +----------------- + + + + + + -- Robert Burger Tue, 30 May 2023 06:09:28 +0200 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..94d56bc --- /dev/null +++ b/debian/changelog @@ -0,0 +1,907 @@ +module-ethercat (6.0.0~pre1) unstable; urgency=low + + * prep: 6.0.0 + + -- Robert Burger Tue, 25 Mar 2025 11:12:34 +0100 + +module-ethercat (5.4.0) unstable; urgency=low + + * cleanup: fixes and cleanup for dc sync changes in libethercat 0.6.8 + + -- Robert Burger Tue, 25 Mar 2025 11:12:34 +0100 + +module-ethercat (5.3.1) unstable; urgency=low + + * fix: package versions + * fix: pdo subindex count + * Merge branch 'release/5.3.1' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat into release/5.3.1 + * fix: pdo subindex count + * fix: canopen for eeprom stuff + * fix: eeprom pdo datatype + + -- Robert Burger Tue, 7 Jan 2025 09:47:33 +0100 + +module-ethercat (5.3.0) unstable; urgency=low + + * add: debian11 build for module + * add: debian11 build + * bump: libetherat version + * fix: dc activation reg + * fix: stream hw layer working + * chore: hw stream hack + * Merge remote-tracking branch 'origin/master' into release/5.3.0 + * add: attaching libethercat to rk stream devices + * fix: changes for hardware layer rework of libethercat 0.6.0 + + -- Robert Burger Fri, 29 Nov 2024 08:42:42 +0100 + +module-ethercat (5.2.4) unstable; urgency=low + + * Merge pull request #19 from robotkernel/feat/conan2 + * fix: add brackets for option values + * chore: replace cissy tools with native conan code + * chore: revert black formatting + * chore: formatting + * feat: conan2 compatibility + + -- Burger, Robert Thu, 19 Sep 2024 10:21:04 +0200 + +module-ethercat (5.2.3) unstable; urgency=low + + * Merge pull request #18 from robotkernel/fix/17_cycle_shift_signed + * fix: issue #17, making cycle_shift unsigned + + -- Burger, Robert Tue, 23 Apr 2024 14:47:23 +0200 + +module-ethercat (5.2.2) unstable; urgency=low + + * change: using libethercat/0.5.1 stable + * Merge branch 'release/5.2.2' + * fix: zero length data array #5 + * add: use_real_names option + * Merge branch 'master' into release/5.2.2 + * feat: real names for rk devices + * removed not needed option ecat_device + * Merge branch 'master' into release/5.2.1 + * fixed: hw_device default build + * fix: libethercat options + * removed disable_sm_map + * fix: rkgui should work again + * fix: using libethercat unstable for now + * fix: must use libethercat >= 0.5.1! + * add: options for lwr and overlapping process data exchange + * made scan warnings to errors + * sync manager status no longer in process data since libethercat/0.5.1 + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * add: writing of master coe element + + -- Robert Burger Tue, 20 Feb 2024 14:47:55 +0100 + +module-ethercat (5.2.1) unstable; urgency=low + + * Merge pull request #16 from robotkernel/feat/conan2 + * feat: conan2 + * chore: conan2 port + + -- Mühlbauer, Maximilian Sebastian Mon, 5 Feb 2024 08:34:35 +0100 + +module-ethercat (5.2.0) unstable; urgency=low + + * fixed memory_inspection + * updated libethercat version to 0.5.0 + * fixes for libethercat polling version + + -- Robert Burger Fri, 11 Aug 2023 13:04:44 +0200 + +module-ethercat (5.1.4) unstable; urgency=low + + * fix: skip waiting for dc converged when we have no dc's enabled + + -- Robert Burger Fri, 10 Mar 2023 15:23:23 +0100 + +module-ethercat (5.1.3) unstable; urgency=low + + * fix: abort when slave expected but not connected + * add feature: vendor_id and product_code check + + -- Robert Burger Fri, 3 Mar 2023 14:17:02 +0100 + +module-ethercat (5.1.2) unstable; urgency=low + + * Merge branch 'release/5.1.1' + * cleanup: removed old commented code + * change: build against libethercat 0.4.x + * fixed 'intialized before...' warning + * fix: removing slaves from group which are not connected! + + -- Robert Burger Fri, 3 Mar 2023 13:38:39 +0100 + +module-ethercat (5.1.1) unstable; urgency=low + + * Merge pull request #12 from robotkernel/fix/pd_size_dc + * fix: align amount of data copied to dc pd + * fix: correct size calculation of dc pd_size + * fix: rkgui requirementes + + -- Burger, Robert Mon, 27 Feb 2023 09:22:31 +0100 + +module-ethercat (5.1.0) unstable; urgency=low + + * fix: builds + * fix: builds + * fix: builds + * fix: rkgui requirementes + * add rkbui build + * new release with separate rkgui + * change: switched to libethercat 0.4.0 stable + * Merge branch 'master' into release/5.1.0 + * fix: conan requirements + * Merge branch 'release/5.0.19' + * change: using triple_buffer_with_injection + * fix conanfile + * chore: update dependencies + * Merge remote-tracking branch 'origin/master' into release/5.1.0 + * indent fixes + * FIX: passing password to foe + * fix: padding bytes removed in odlist + * cleanup: odlist list on big dictionaries + * fix: length of odlist is too big allocate buffer + * fix: libethercat version + * change: dc default settings + * re-added: converge algo + * cleanup dc + * Merge branch 'release/5.0.19' into release/5.0.19-dc-test + * Merge branch 'master' into release/5.0.19-dc-test + * switched to libethercat unstable 0.4.0 + * Merge branch 'release/5.0.19' into release/5.0.19-mdp1100 + * Merge branch 'master' into release/5.0.19 + * switched to conan_template + * fix: libethercat version dependency + * changes: for MDP 1100 + * change: added packet duration for dc process data + * latest libethercat changes + * removed old code + * dc test added + * change: removed tx_sync as it is now directly controlled by libethercat state machine + * fix: adapt changed module name + * add url to conanfile to reduce noise + * notes on debugging config show + * debug: more logging and warning about disabled code + * fix: compiler warnings regarding strncpy size and -Wno-addresss-of-packed-member flag + * Merge branch 'release/5.0.19' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat into release/5.0.19 + * cleanup: some cyclic frames callback cleanup + * Merge branch 'master' into release/5.0.19 + * change: switched to unstable libethercat + * fix: libethercat version + * change: latest changes for callback datagrams + * fix: clear client list to avoid ever-growing list + * fix: using correct libethercat version + * change: don't wait on tick for frames received back + * chore: FIXME for unnecesarily complex code + * trowing exception when switch to INIT fails\n + * fix: catch case of empty index/path + * fix: uninitialized prefer_obj_names + * fix: uninitialized map_mbx_state + * add: package options + * fixed some compiler warnings + * change: re-added dc_sync_log check + * feat/py3: apply futurize script + * add: option to disable mbx sm state mapping + * chore: update conanfile + * feat/python3 + * fixed group divisor asignment, removed unused + * latest libethercat changes + * feat/gtk3: replace deprecated widgets + * feat/gtk3: workaround for definition of treeview model + * fix: implemented get CoE emergency message + * add more conan options + * feat/gtk3: change dependencies + * convert to Gtk3 + * convert to Gtk3 + * add: device mode builds + * fix: libethercat version + * fix: latest libethercat changes + * fix: changes for latest libethercat + * change: using osal timer funcs + * fix: reading sdo + * fix: cleanup dc pdin + * change: latest libethercat-misra dc cleanup + * dc working for kp: 1.0, ki: 0.5 + * fixes and work on dc sync + * change: latest changes for misra test + + -- Robert Burger Wed, 22 Feb 2023 11:18:04 +0100 + +module-ethercat (5.0.18) unstable; urgency=low + + * add: flag to skip_pdo_description + * del: removed duplicate registering of SoE handlers + + -- Robert Burger Mon, 21 Nov 2022 18:17:40 +0100 + +module-ethercat (5.0.17) unstable; urgency=low + + * add: service collector for SoE + * fix: removed setting thread name for threads of libethercat + * Update README.wiki + + -- Robert Burger Thu, 5 May 2022 06:45:58 +0200 + +module-ethercat (5.0.16) unstable; urgency=low + + * FIX: decoding SoE answer, impl SoE write service + * CHANGE: switching to stable libethercat + + -- Robert Burger Tue, 22 Mar 2022 07:40:22 +0100 + +module-ethercat (5.0.15) unstable; urgency=low + + * fix: add master_clock_as_ref + * DEL: removed not needed pt file + + -- Maximilian Mühlbauer Thu, 17 Mar 2022 14:55:23 +0100 + +module-ethercat (5.0.14) unstable; urgency=low + + * MERGE: branch 'release/6.0.0' CHANGE: using new conan template + * t MERGE: branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * FIX: removed not needed warning on converted uint16 + * Merge branch 'master' into release/6.0.0 + * CHANGE: parsing error code for coe sdo info requests + * FIX: reading settings for EoE subnet and gateway + * MERGE: branch 'master' into release/6.0.0 + * FIX: std::chrono::milliseconds for old osl42 compiler + * CHANGE: switched to libethercat/0.3 + * DEL: removed old dcss code + * FIX: coe emergency structure change in libethercat 0.3 + * CHANGE: async mailbox handling done by libethercat 0.3 + * DEL: old code + * ADD: dc clock setter thread + * FIX: conan template version + * UPDATE: to version 6 unstable + * FIX: removing trigger devices + * FIX: enabling resending init commands + * REMOVE: not emitting new config + * FIX: state machine starting EtherCAT at PREOP + * CHANGE: open ethercat in PREOP instead of INIT + + -- Robert Burger Fri, 3 Dec 2021 06:47:32 +0100 + +module-ethercat (5.0.13) unstable; urgency=low + + * FIX: using obj name if preferred + + -- Robert Burger Thu, 11 Nov 2021 12:30:08 +0100 + +module-ethercat (5.0.12) unstable; urgency=low + + * fixed unsigned comparision + * CHANGE: libethercat 0.3.0 stable + * MERGE: branch 'master' into release/5.0.12 + * FIX: libethercat version to unstable + * FIX: libethercat 0.3 is unstable + * CHANGE: parsing error code for coe sdo info requests + * FIX: reading settings for EoE subnet and gateway + * FIX: std::chrono::milliseconds for old osl42 compiler + * CHANGE: switched to libethercat/0.3 + * DEL: removed old dcss code + * FIX: coe emergency structure change in libethercat 0.3 + * CHANGE: async mailbox handling done by libethercat 0.3 + * DEL: old code + * ADD: dc clock setter thread + * FIX: removing trigger devices + * FIX: enabling resending init commands + * REMOVE: not emitting new config + * FIX: state machine starting EtherCAT at PREOP + * CHANGE: open ethercat in PREOP instead of INIT + * fix: add sync_manager_status only for inputs + * added sync_manager_status to pdo description + + -- Robert Burger Thu, 11 Nov 2021 09:18:26 +0100 + +module-ethercat (5.0.11) unstable; urgency=low + + * changed error log level + + -- Robert Burger Wed, 25 Mar 2020 07:47:40 +0100 + +module-ethercat (5.0.10) unstable; urgency=low + + * fixed index + + -- Robert Burger Tue, 17 Mar 2020 08:51:24 +0100 + +module-ethercat (5.0.9) unstable; urgency=low + + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * added gui plugin + + -- Robert Burger Thu, 27 Feb 2020 16:38:52 +0100 + +module-ethercat (5.0.8) unstable; urgency=low + + * better log output on dc converge + * added check when to start dc frame + * some config generation + * changed sync manager settings to shared pointers + * added yaml generation functions + * switching to defaults + + -- Robert Burger Wed, 19 Feb 2020 14:41:59 +0100 + +module-ethercat (5.0.7) unstable; urgency=low + + * added recv_error trigger device + * fixed dc diff converge code + * fixed dc converge logic + + -- Robert Burger Tue, 10 Dec 2019 07:25:12 +0100 + +module-ethercat (5.0.6) unstable; urgency=low + + * fixed floating point exception with dc converge + * added author + + -- Robert Burger Mon, 25 Nov 2019 11:04:36 +0100 + +module-ethercat (5.0.5) unstable; urgency=low + + * removed debug builds + * checking test ooutput and ignoring 'ec_open failed' error + + -- Robert Burger Tue, 12 Nov 2019 07:44:45 +0100 + +module-ethercat (5.0.4) unstable; urgency=low + + * added test + + -- Robert Burger Mon, 11 Nov 2019 14:49:22 +0100 + +module-ethercat (5.0.3) unstable; urgency=low + + * changed targets + * Merge branch 'release/5.0.3' + * updated sample module config + * added architectures + * added architectures + * added architectures + * added architectures + * fixed jenkinsfile + * fixed jenkinsfile + * added architectures + * added architectures + * build: updated build/ci files for cissy 1.0->2.0 + * build: updated build/ci files for cissy 1.0->2.0 + * changed log message + * releasing doc folder + * reworked dc sync pic controller + * reworked example config file + * fixed typo + * Merge branch 'release/5.0.3' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat into release/5.0.3 + * throwing sdo_abort_exception on sdo abort now + * fixed race condition writing to pdin + * passing trigger rates to group and slave triggers + * fixed logging + * Merge branch 'master' into release/5.0.3 + * catching exception on getting pdo descriptions + * pdo desc may have unreadable values + * updated conanfile + * Merge branch 'test' into release/5.0.3 + * debug output + * better pdo description generation + * fixed mapping description if bitsizes do not match and combining bitfields + * only try to receive dc frame if we sent one + * moved setting of offset_compensation_cycles to safeop + * cleaning up key_value + * code cleanup + * working on macros for key_value + * working on macros for key_value + * working on macros for key_value + * added all eeprom general + * trying strings macro + * trying strings macro + * added eeprom fmmu + * added eeprom dcs + * fixed type + * fixed type + * fixed type + * trying to map eeprom txpdos to key_value + * trying to map eeprom txpdos to key_value + * trying to map eeprom txpdos to key_value + * mapped eeprom sync manager to pdi + * added read_only key value stuff, needs to be at service provider level + * added read_only key value stuff, needs to be at service provider level + * added eeprom product code to key value + * added test eeprom key value entry + * trying to set dc + * style fix + * using unstable libethercat for devel + * renamed brd_state to monitor_state + * added brd read of ec_state + * triggering slaves pdin_trigger + * added slave pdin_trigger to robotkernel + * updated Jenkinsfile + * fixed requires + * added build depenencies + * updated configure script + * fixed deps, added build archs + * updated pkg config check + * updated requiers + * added conan/jenkins stuff + * fixed add init cmds + * added trigger device for distributed clocks process data device + + -- Robert Burger Thu, 24 Oct 2019 09:28:53 +0200 + +module-ethercat (5.0.2) unstable; urgency=low + + * fixed ld library path + + -- Robert Burger Fri, 7 Sep 2018 10:59:58 +0200 + +module-ethercat (5.0.1) unstable; urgency=low + + * fixed non-printable name + * shutdown fix + * added pop_emergency_message calL + * fixed deps + * prep 5.0.1 + * fixed creating pd defintiion + * fixed index in pd_consumer/provider + * added some verbose logging + * fixed libethercat library path + * fixed warning message for coe element read + * changed inc lnc + * moved install rules for share + * added robotkernel gui + + -- Robert Burger Fri, 7 Sep 2018 10:08:18 +0200 + +module-ethercat (5.0.0) unstable; urgency=low + + * removed not neededn include + * Prep 5.0.0 release + * wii + * added wiki README + * added wiki README + * added libethercat link + * Update README.wiki + * Create README.wiki + * auto commit + * fixed pdo description + * small compile fix + * changed to std mutex and condition + * added trigger device to process data in + * Merge remote-tracking branch 'origin/master' into robotkernel-5 + * changed version and documentation + * fixed linker flags + * fixed slave trigger + * fixed depenedencies + * fixed deps + * fixed deps + * new beta release + * added inc.lnc to ignores, generated from .in file + * 5.0.beta1 version + * fixed variable name of libpath + * adding ld_library_path for libethercat + * fixed doc desc in properties + * fixed ln include file + * removed message defs + * latest changes for libethercat + * switching to triple_buffer impl + * thread_names + * some more catches + * triple buffer changes + * fixed some memory leaks + * renamed trigger() to tick() + * latest device name fixes + * fixes for latest rk changes + * changes for latest robotkernel changes + * fixed process_data namespace + * calling pdin_handler + * determine trigger device and adjust interval of trigger device + * fixed file protocol prefix + * implemented file_read and file_write + * added master_as_ref_clock mode + * investigating return value + * latest changes + * fixed preop_2_safeop transition, switching from tx_sync 1 -> 0 + * state machine cleanup + * switched to RK_CHECK_MODULES + * Merge branch 'robotkernel-5' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat into robotkernel-5 + * changed init command behaviour + * added deps.m4 + * added pre and post state transition for slaves + * working on service provider registration + * changed state machine to use transitions + * added initial init_2_init transition + * removed state + * splitted files + * added pc file generation + * added programs + * added install rule for pc-file + * added deps + * added deps + * added deps + * fixed typo + * fixed Makefile.am + * added m4 macros + * Merge branch 'robotkernel-5' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat into robotkernel-5 + * changes to use smart pointers + * updated scritpts + * implemented canopen via mailbox and eeprom + * changed service requesters to shared pointers + * added memory inspection + * fixed coe reading + * fixed service registering for soe support + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat into robotkernel-5 + * fixed makefile + * changes for robotkernel-5 + * no_ln work + + -- Robert Burger Mon, 12 Mar 2018 13:01:50 +0100 + +module-ethercat (4.1.7) unstable; urgency=low + + * preparing new release 4.1.7 + * fixed canopen mailbox requests with new libethercat + + -- Robert Burger Wed, 11 Oct 2017 09:09:56 +0200 + +module-ethercat (4.1.6) unstable; urgency=low + + * fixed ln include file + * fixes for latest libethercat changes, now compiles and links against 0.1.beta7 + + -- Robert Burger Tue, 10 Oct 2017 13:04:53 +0200 + +module-ethercat (4.1.5) unstable; urgency=low + + * fixed deps + * increased libethercat to 0.0.5 + * fixed dependencies + * inc version, build against libethercat 0.0.4 which has grant_cap_net_raw support§ + + -- Robert Burger Mon, 13 Feb 2017 10:05:24 +0100 + +module-ethercat (4.1.4) unstable; urgency=low + + * new libethercat 0.0.3 + * use up-to-date scripts + * use -pthread and -lpthread so fix not-working sem_post + + -- Robert Burger Thu, 2 Feb 2017 14:26:12 +0100 + +module-ethercat (4.1.3) unstable; urgency=low + + * prep 4.1.3 release + * fixed distributed clock shift + + -- Robert Burger Mon, 12 Dec 2016 13:44:14 +0100 + +module-ethercat (4.1.2) unstable; urgency=low + + * fixed distributed clocks drift compensation + * 4.1.2 release + * added better mapping of pdos, clearly readable in yaml-config file + + -- Robert Burger Thu, 8 Dec 2016 11:38:07 +0100 + +module-ethercat (4.1.1) unstable; urgency=low + + * switched to libethercat 0.0.2 + + -- Robert Burger Thu, 8 Dec 2016 06:56:06 +0100 + +module-ethercat (4.1.0) unstable; urgency=low + + * 'automated_commit' + * fixed dc mode, using enum from libethercat + * 'scripts_updated' + * 'scripts_updated' + * switched to libethercat package + * removed libethercat source + * removed debug messages + * added second memory inspection for eeprom + * added coe interface for eeprom contents + * fixed parsing pdo in eeprom, added dc parsing + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * project files + * reorganized stuff + * adding init commands and distributed clock settings + * more eeprom log messages + * fixed segfault if no mailbox is allocated + * do not always read the full eeprom if we have a mailbox present + * fixed segfault if mailbox is not initialized + * removed frame debugging + * fixed build + * added osl42-x86_64 to supported archs + * 'scripts_updated' + * moved files to src dir + * 'scripts_updated' + * 'replaced_with_default' + * 'scripts_updated' + * 'scripts_updated' + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * 'scripts_updated' + * fixed gradle build + * small segfault fix + * 'scripts_updated' + * 'scripts_updated' + * "transforming" + * 'scripts_updated' + * fixed version + * gparent files + * removed makefile + * added interface file protocol + * prep 4.0.12 + * some logging + * fixed minor valgrind bugs + * using file protocol now + * interface registering depending on module state + + -- Robert Burger Wed, 30 Nov 2016 10:28:07 +0100 + +module-ethercat (4.0.11) unstable; urgency=low + + * Merge branch 'master' of rmc-github.robotic.dlr.de:robotkernel/module-ethercat + * crash fixes + * scripts changed to master + * added libstring_util + + -- Robert Burger Fri, 10 Jun 2016 10:55:53 +0200 + +module-ethercat (4.0.10) unstable; urgency=low + + * prep 4.0.10 + + -- Robert Burger Tue, 7 Jun 2016 09:29:58 +0200 + +module-ethercat (4.0.9) unstable; urgency=low + + * drecksgit ... + * fixed dependencies, prep 4.0.9 + * updated scripts + * added missing md + * prep 4.0.8 + * added boostrap mbx sizes + * s.o. + * added foe file_write + * work on foe + * added ethercat boot state + + -- Robert Burger Tue, 7 Jun 2016 09:23:14 +0200 + +module-ethercat (4.0.7) unstable; urgency=low + + * scheiß git + * changes coe names to variable len + * gitignore, foe + * only get dc trigger clock once + * do not configure dc if we do not have one ;-) + * only calculate sm start address if not set + + -- Robert Burger Mon, 11 Apr 2016 13:12:41 +0200 + +module-ethercat (4.0.6) unstable; urgency=low + + * prep 4.0.6 + * dc and mailbox + * Merge branch 'master' of https://rmc-github.robotic.dlr.de/robotkernel/module-ethercat + * distributed clock extensions + + -- Robert Burger Thu, 31 Mar 2016 09:58:42 +0200 + +module-ethercat (4.0.5) unstable; urgency=low + + * prep 4.0.5 + * use RMPM_ENV and RM_FIND_LN_FROM_ENV macros + * undo regression with pd_cookie + * making log_eeprom_data optional, default false + * added group trigger + + -- Florian Schmidt Tue, 8 Mar 2016 10:45:27 +0100 + +module-ethercat (4.0.4) unstable; urgency=low + + * drecks git Merge branch 'master' of https://rmc-github.robotic.dlr.de/robotkernel/module-ethercat + * added trigger_interval check + * fixed dc time base + * added emacs dir-locals for robert's style + * small simplification a = b vs. a += b - a + * fixed race condition with pd_cookie + * inc version + * added group receive timeouts + * added ethercat master state + * added eeprom write functions + * added al status code display + * added parsing of init_cmd values instead of raw data + * working on dc and eeprom log + * added submodule scripts + * added init function for registering set/get state services fixed deleting of mailbox services + * added init function for registering set/get state services fixed deleting of mailbox services + * ec_slave_get_state now also can return the alstatuscode value set timeout of ethercat frames to 250us print out warning message of wrong wkc only every 1000 times + * fixed index error in generate_mapping fixed initialization of _pd_intf to NULL fixed bracket around log message in eeprom.c (already set by user) + + -- Robert Burger Mon, 7 Mar 2016 15:38:55 +0100 + +module-ethercat (4.0.3) unstable; urgency=low + + * prep 4.0.3 + * fixed dc clock drift + + -- Robert Burger Thu, 12 Nov 2015 08:46:04 +0000 + +module-ethercat (4.0.2) unstable; urgency=low + + * prep 4.0.2 + * fixes for ax5000 soe transfers + + -- Robert Burger Fri, 23 Oct 2015 06:41:20 +0000 + +module-ethercat (4.0.1) unstable; urgency=low + + * prep 4.0.1 + * fixes for soe, prep 4.0.1 + + -- Robert Burger Wed, 21 Oct 2015 07:14:43 +0000 + +module-ethercat (4.0.0) unstable; urgency=low + + * switched to yamlcpp 0.5.2 prep 4.0.0 + * removed m4 dir + + -- Robert Burger Tue, 15 Sep 2015 11:17:14 +0000 + +module-ethercat (3.1.12) unstable; urgency=low + + * added ignores, prep 3.1.12 + * removed Makfile.defs + * + * added pd_cookie and set_pdout + + -- Robert Burger Wed, 9 Sep 2015 06:29:36 +0000 + +module-ethercat (3.1.11) unstable; urgency=low + + * prep 3.1.11 + * fixed unregister interfaecs + * fixed for soe and soe channels + * working on some slave id thoughts + * bug fix in writing big soe values + * cleaned up some code + * working on ax5000 + * added get_ec_state and set_ec_state, dc's seem to be working on ax5000 + * added asynch thread for mailbox event handling + * added mailbox locking + + -- Robert Burger Thu, 20 Aug 2015 04:57:59 +0000 + +module-ethercat (3.1.10) unstable; urgency=low + + * added process data inspection for distributed clocks fixed small bug in distributed clock calculation + + -- Robert Burger Thu, 6 Aug 2015 08:36:05 +0000 + +module-ethercat (3.1.9) unstable; urgency=low + + * fixed for fts100, reading coe obj dict now with prio 0 and len 8 + + -- Robert Burger Thu, 6 Aug 2015 05:25:41 +0000 + +module-ethercat (3.1.8) unstable; urgency=low + + * 3.1.8 prepare + * some mods for slaves without coe, map eeprom to coe dict + * fixed mbx_supported check + * working on coe mapping + * some indenting + * added mailbox check in soe + * working on soe error handling added mailbox check in coe + * name fix + * added soe filesimplemented generate mapping in coe implemented generate mapping in soe + * working on mapping, coe, soe + + -- Robert Burger Thu, 2 Jul 2015 13:43:46 +0000 + +module-ethercat (3.1.7) unstable; urgency=low + + * fixed archs in ptfile + * fixed archs in ptfile + * + * supporting vxworks with snaff ll + + -- Robert Burger Wed, 27 May 2015 06:44:41 +0000 + +module-ethercat (3.1.6) unstable; urgency=low + + * prep 3.1.6 + * fixed compiler warning + * fixed md path + * added supported archs + * added m4 dir + * removed Makefile.suggested and added symlink + * removed generated ptfile + * added dependencies + + -- Robert Burger Tue, 26 May 2015 11:11:31 +0000 + +module-ethercat (3.1.5) unstable; urgency=low + + * prep 3.1.5 + * fixed error message on sdo read + * handle sdo abort now on read + + -- Robert Burger Wed, 6 May 2015 08:23:20 +0000 + +module-ethercat (3.1.4) unstable; urgency=low + + * prep 3.1.4 + * fixed too late pthread_mutex_init + * build on hannibal + * optional AM_PROG_AR and added rk_depends to .inc.lnc for ln_generate_includes + + -- Robert Burger Fri, 10 Apr 2015 09:29:23 +0000 + +module-ethercat (3.1.3) unstable; urgency=low + + * prep 3.1.3 + * added rtc_time measurement + * fixed sto calculation + * working on sto + * cleanup added dcsystemtimeoffset sync with master, first try + * better trigger handlign working on async check added mtu_size readded index lock + * switched all timespec's to ec_timer_t + * added mesage loop + * added new ec_timer function + * modifications for reorganized libethercat + * reorganized libethercat + * added expected_wkc changed include guard of module slave.h check in trigger function of working counter vs. expected_wkc + + -- Robert Burger Mon, 9 Mar 2015 13:20:59 +0000 + +module-ethercat (3.1.2) unstable; urgency=low + + * prep 3.1.2 + * added timeout for datagram receive and message in that case + + -- Robert Burger Fri, 13 Feb 2015 08:50:38 +0000 + +module-ethercat (3.1.1) unstable; urgency=low + + * added missing timer + * perp 3.1.1 + * fixed reading of coe elements + * added loglevel configured distributed clocks working on justin + * fixed struct in coe + * working on coe + + -- Robert Burger Wed, 11 Feb 2015 11:52:29 +0000 + +module-ethercat (3.1.0) unstable; urgency=low + + * first release 3.1.0 + * first release 3.1.0 + * some format + * fixed for loop in dc initialization fixed uninitialized values renamed recv_frame to send_frame in hw_tx + * fixed for loop in dc initialization fixed uninitialized values renamed recv_frame to send_frame in hw_tx + * fixed slave triggers + * immediately tx removed + * faster read should work if clock is faster, use group divisors + * not working fixes for faster mailbox comm + * reworked memory interface 0-0xffff esc mem 0x10000- eeprom mem cleaned up slave added master files added distributed clocks and config option + * first dc version + * added memory interface for slave memory added memory interface for eeprom memory + * added groups reorganized sync manager setting + * + * some improvements on example seupt + * + * working with one elmo and process data + * added pool lock + * modified code to ethercat + * initial import + * creating svn directory 'https://rmsvn01.robotic.dlr.de/software/robotkernel/src/module-ethercat/trunk' [rmpm admintool (burger_r, 2014-11-27-12-45-31)] + + -- Robert Burger Mon, 2 Feb 2015 09:24:10 +0000 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..092d298 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: module-ethercat +Priority: optional +Maintainer: Robert Burger +Build-Depends: debhelper-compat (= 13), autotools-dev +Standards-Version: 4.5.1 +Section: libs +Homepage: https://www.burger-system.de/robotkernel/module_ethercat +Vcs-Browser: https://github.com/robotkernel-hal/module_ethercat.git +Vcs-Git: https://github.com/robotkernel-hal/module_ethercat.git +Rules-Requires-Root: no + +Package: module-ethercat +Architecture: any +Multi-Arch: same +Depends: robotkernel, libosal, libethercat, ${misc:Depends} +Description: TODO diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..10944ae --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: service-provider-process-data-inspection +Upstream-Contact: +Source: + +Files: * +Copyright: + +License: LGPL-3.0+ + +Files: debian/* +Copyright: 2023 Robert Burger +License: LGPL-3.0+ + +License: LGPL-3.0+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-3". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. +# +# If you need, there are some extra license texts available in two places: +# /usr/share/debhelper/dh_make/licenses/ +# /usr/share/common-licenses/ diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex new file mode 100644 index 0000000..9f673d1 --- /dev/null +++ b/debian/manpage.1.ex @@ -0,0 +1,56 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2023 Robert Burger , +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH Libosal SECTION "May 30 2023" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +libosal \- program to do something +.SH SYNOPSIS +.B libosal +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B libosal +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBlibosal\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. diff --git a/debian/manpage.sgml.ex b/debian/manpage.sgml.ex new file mode 100644 index 0000000..eb2baf9 --- /dev/null +++ b/debian/manpage.sgml.ex @@ -0,0 +1,154 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + May 30 2023"> + + SECTION"> + robert.burger@dlr.de"> + + Libosal"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (and may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + diff --git a/debian/manpage.xml.ex b/debian/manpage.xml.ex new file mode 100644 index 0000000..8f900b4 --- /dev/null +++ b/debian/manpage.xml.ex @@ -0,0 +1,291 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A typical entry +in a Makefile or Makefile.am is: + +DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl +XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" + +manpage.1: manpage.xml + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The XSL files are in +docbook-xsl. A description of the parameters you can use can be found in the +docbook-xsl-doc-* packages. Please remember that if you create the nroff +version in one of the debian/rules file targets (such as build), you will need +to include xsltproc and docbook-xsl in your Build-Depends control field. +Alternatively use the xmlto command/package. That will also automatically +pull in xsltproc and docbook-xsl. + +Notes for using docbook2x: docbook2x-man does not automatically create the +AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as + ... . + +To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections +read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be +found in the docbook-xsl-doc-html package. + +Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` + +General documentation about man-pages and man-page-formatting: +man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + +--> + + + + + + + + + + + + + +]> + + + + &dhtitle; + &dhpackage; + + + &dhfirstname; + &dhsurname; + Wrote this manpage for the Debian system. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the Debian system + (and may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + program to do something + + + + &dhpackage; + + + + + + + + + this + + + + + + + + this + that + + + + + &dhpackage; + + + + + + + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; and bar + commands. + This manual page was written for the Debian distribution + because the original program does not have a manual page. + Instead, it has documentation in the GNU + info + 1 + format; see below. + &dhpackage; is a program that... + + + OPTIONS + The program follows the usual GNU command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + + info + 1 + files. + + + + + + + Does this and that. + + + + + + + Show summary of options. + + + + + + + Show version of program. + + + + + + FILES + + + /etc/foo.conf + + The system-wide configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + ${HOME}/.foo.conf + + The per-user configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + + + ENVIRONMENT + + + FOO_CONF + + If used, the defined file is used as configuration + file (see also ). + + + + + + DIAGNOSTICS + The following diagnostics may be issued + on stderr: + + + Bad configuration file. Exiting. + + The configuration file seems to contain a broken configuration + line. Use the option, to get more info. + + + + + &dhpackage; provides some return codes, that can + be used in scripts: + + Code + Diagnostic + + 0 + Program exited successfully. + + + 1 + The configuration file seems to be broken. + + + + + + BUGS + The program is currently limited to only work + with the foobar library. + The upstreams BTS can be found + at . + + + SEE ALSO + + + bar + 1 + , + baz + 1 + , + foo.conf + 5 + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + info + 1 + system. + +
+ diff --git a/debian/module-ethercat-docs.dirs b/debian/module-ethercat-docs.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/module-ethercat-docs.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/module-ethercat-docs.docs b/debian/module-ethercat-docs.docs new file mode 100644 index 0000000..efea0a6 --- /dev/null +++ b/debian/module-ethercat-docs.docs @@ -0,0 +1,2 @@ +README.Debian +README.source diff --git a/debian/module-ethercat.cron.d.ex b/debian/module-ethercat.cron.d.ex new file mode 100644 index 0000000..6b2abbe --- /dev/null +++ b/debian/module-ethercat.cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the libosal package +# +0 4 * * * root [ -x /usr/bin/libosal_maintenance ] && /usr/bin/libosal_maintenance diff --git a/debian/module-ethercat.doc-base.EX b/debian/module-ethercat.doc-base.EX new file mode 100644 index 0000000..f166571 --- /dev/null +++ b/debian/module-ethercat.doc-base.EX @@ -0,0 +1,20 @@ +Document: libosal +Title: Debian libosal Manual +Author: +Abstract: This manual describes what libosal is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/libosal/libosal.sgml.gz + +Format: postscript +Files: /usr/share/doc/libosal/libosal.ps.gz + +Format: text +Files: /usr/share/doc/libosal/libosal.text.gz + +Format: HTML +Index: /usr/share/doc/libosal/html/index.html +Files: /usr/share/doc/libosal/html/*.html diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..1985f4a --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postinst script for libosal +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 0000000..0bc1aa4 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for libosal +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 0000000..882f827 --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,35 @@ +#!/bin/sh +# preinst script for libosal +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 0000000..846380b --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for libosal +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ad0e099 --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +export DH_VERBOSE = 1 + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +#export GIT_VERSION = $(shell git describe --long --dirty --tags | awk -F- '{ print $$1 }') + +#override_dh_autoreconf: +# sed 's/VERSION.*/VERSION = ${GIT_VERSION}/' -i project.properties +# dh_autoreconf + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/debian/salsa-ci.yml.ex b/debian/salsa-ci.yml.ex new file mode 100644 index 0000000..260ebbe --- /dev/null +++ b/debian/salsa-ci.yml.ex @@ -0,0 +1,11 @@ +# For more information on what jobs are run see: +# https://salsa.debian.org/salsa-ci-team/pipeline +# +# To enable the jobs, go to your repository (at salsa.debian.org) +# and click over Settings > CI/CD > Expand (in General pipelines). +# In "Custom CI config path" write debian/salsa-ci.yml and click +# in "Save Changes". The CI tests will run after the next commit. +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/debian/shlibs.local.ex b/debian/shlibs.local.ex new file mode 100644 index 0000000..e884c03 --- /dev/null +++ b/debian/shlibs.local.ex @@ -0,0 +1 @@ +liblibosal 0.0.2 libosal (>> 0.0.2-0), libosal (<< 0.0.2-99) diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 0000000..e476ab2 --- /dev/null +++ b/debian/watch.ex @@ -0,0 +1,38 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 4 file +version=4 + +# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig +#opts="pgpsigurlmangle=s%$%.sig%" + +# HTTP site (basic) +#http://example.com/downloads.html \ +# files/libosal-([\d\.]+)\.tar\.gz debian uupdate + +# Uncomment to examine an FTP server +#ftp://ftp.example.com/pub/libosal-(.*)\.tar\.gz debian uupdate + +# SourceForge hosted projects +# http://sf.net/libosal/ libosal-(.*)\.tar\.gz debian uupdate + +# GitHub hosted projects +#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%-$1.tar.gz%" \ +# https://github.com//libosal/tags \ +# (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate + +# PyPI +# https://pypi.debian.net/libosal/libosal-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) + +# Direct Git +# opts="mode=git" http://git.example.com/libosal.git \ +# refs/tags/v([\d\.]+) debian uupdate + + + + +# Uncomment to find new files on GooglePages +# http://example.googlepages.com/foo.html libosal-(.*)\.tar\.gz