Bug 215409 - [NEW PORT] comms/snap7: Ethernet S7 PLC communication suite
Summary: [NEW PORT] comms/snap7: Ethernet S7 PLC communication suite
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kurt Jaeger
URL: https://sourceforge.net/projects/snap7/
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-19 10:54 UTC by vova
Modified: 2019-01-06 13:34 UTC (History)
2 users (show)

See Also:


Attachments
shar archive with port files (5.98 KB, application/x-shar)
2016-12-19 10:54 UTC, vova
no flags Details
v2, Updated version with changes from MikaelUrankar (5.95 KB, application/x-shar)
2016-12-19 19:49 UTC, vova
no flags Details
v3, with added makefile for arm_v6 platform (6.54 KB, application/x-shar)
2016-12-20 09:50 UTC, vova
no flags Details
v4, Satisfy portlint (6.50 KB, application/x-shar)
2016-12-20 09:55 UTC, vova
no flags Details
v5, add mips architecture support (6.97 KB, application/x-shar)
2016-12-21 17:14 UTC, vova
no flags Details
v6, satisfy portlint -AC, remove README.md (328 bytes, application/x-shar)
2017-01-11 08:42 UTC, vova
no flags Details
v6, satisfy portlint -AC, remove README.md (correct archive) (4.53 KB, application/x-shar)
2017-01-11 19:19 UTC, vova
no flags Details
v7, use SF macro for MASTER_SITES (4.35 KB, application/x-shar)
2017-04-11 10:38 UTC, vova
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description vova 2016-12-19 10:54:00 UTC
Created attachment 178089 [details]
shar archive with port files

Library to communicate with Siemens controllers using S7 protocol.

https://sourceforge.net/projects/snap7/
 
Snap7, through three specialized components: Client and the inedited Server and Partner, allows you to definitively integrate your PC based systems into a PLC automation chain.

Designed to transfer large amounts of hi-speed data in industrial facilities, it scales easily, down to small Linux Arm boards such as Raspberry PI.

Hi level object oriented wrappers are provided, currently C/C++, .NET/Mono, Pascal, LabVIEW, Python with many source code examples.

Very easy to use, a full working server example is not bigger than the “Hello world”.


Port sources are available at github: https://github.com/vgrebenschikov/snap7
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2016-12-19 13:57:26 UTC
pkg-descr and README.md say that it works on arm (raspberrypi, bbb..) but the Makefile says that it's only for amd64 i386, can you clarify please?

I think you can remove README.md in the shar file.
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2016-12-19 14:15:55 UTC
There are 3 portlint warnings, can you fix them?

WARN: /root/snap7/pkg-plist: [1]: installing shared libraries, please define USE_LDCONFIG as appropriate
WARN: /root/snap7/pkg-plist: [3]: If and only if your port is EXAMPLESDIR-safe (that is, a user can override EXAMPLESDIR when building this port and the port will still work correctly) consider using EXAMPLESDIR macro; if you are unsure if this port is EXAMPLESDIR-safe, then ignore this warning
WARN: /root/snap7/pkg-plist: There are only 3 items in the plist.  Consider using PLIST_FILES instead of pkg-plist when installing less than 6 items.
FATAL: work: be sure to cleanup the working directory before committing the port.
Comment 3 vova 2016-12-19 19:49:02 UTC
Created attachment 178116 [details]
v2, Updated version with changes from MikaelUrankar
Comment 4 vova 2016-12-19 19:49:54 UTC
Hm... portlint does not complain for me:

snap7% portlint .
looks fine.
%
Comment 5 vova 2016-12-20 09:50:39 UTC
Created attachment 178138 [details]
v3, with added makefile for arm_v6 platform
Comment 6 vova 2016-12-20 09:55:06 UTC
Created attachment 178139 [details]
v4, Satisfy portlint
Comment 7 Mikael Urankar freebsd_committer freebsd_triage 2016-12-20 09:56:39 UTC
(In reply to vova from comment #4)
You need to run portlint -AC (cf https://www.freebsd.org/doc/en/books/porters-handbook/book.html#testing-portlint)
Comment 8 Mikael Urankar freebsd_committer freebsd_triage 2016-12-20 10:09:15 UTC
The file patch-arm_v6_bsd.mk should be named patch-arm__v6__bsd.mk
You can remove README.md
Comment 9 vova 2016-12-21 17:14:27 UTC
Created attachment 178182 [details]
v5, add mips architecture support
Comment 10 vova 2017-01-11 08:42:38 UTC
Created attachment 178742 [details]
v6, satisfy portlint -AC, remove README.md
Comment 11 Mikael Urankar freebsd_committer freebsd_triage 2017-01-11 18:22:54 UTC
It looks like your shar file is empty.
Comment 12 vova 2017-01-11 19:19:32 UTC
Created attachment 178763 [details]
v6, satisfy portlint -AC, remove README.md (correct archive)
Comment 13 Mikael Urankar freebsd_committer freebsd_triage 2017-01-12 09:25:23 UTC
The version is hardcoded in MASTER_SITES, you can use something like this instead:
MASTER_SITES=   SF/snap7/${PORTVERSION}

Are you sure 'MASTER_SITES= LOCAL/db' is correct?
Comment 14 vova 2017-04-11 10:38:36 UTC
Created attachment 181685 [details]
v7, use SF macro for MASTER_SITES
Comment 15 vova 2018-01-18 09:18:24 UTC
Port is still actual
Comment 16 commit-hook freebsd_committer freebsd_triage 2019-01-06 13:33:36 UTC
A commit references this bug:

Author: pi
Date: Sun Jan  6 13:33:33 UTC 2019
New revision: 489494
URL: https://svnweb.freebsd.org/changeset/ports/489494

Log:
  New port: comms/snap7

  Snap7, through three specialized components: Client and the inedited Server
  and Partner, allows you to definitively integrate your PC based systems into
  a PLC automation chain.

  Designed to transfer large amounts of hi-speed data in industrial facilities,
  it scales easily, down to small Linux Arm boards such as Raspberry PI.

  Hi level object oriented wrappers are provided, currently C/C++, .NET/Mono,
  Pascal, LabVIEW, Python with many source code examples.

  Very detailed documentation provided.

  WWW: http://sourceforge.net/projects/snap7/

  PR:		215409
  Submitted by:	vova@fbsd.ru

Changes:
  head/comms/Makefile
  head/comms/snap7/
  head/comms/snap7/Makefile
  head/comms/snap7/distinfo
  head/comms/snap7/files/
  head/comms/snap7/files/patch-arm__v6__bsd.mk
  head/comms/snap7/files/patch-common.mk
  head/comms/snap7/files/patch-mips__bsd.mk
  head/comms/snap7/pkg-descr
Comment 17 Kurt Jaeger freebsd_committer freebsd_triage 2019-01-06 13:33:55 UTC
Committed, thanks!