Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

BrainSpawnInfosphere/dpkg_zeromq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dpkg ZeroMQ

Unfortunately raspbian has old packages and the linux distro model is to move slow and not update things. Unfortunately linux homebrew doesn't always work (I use homebrew on macOS and it is awesome!) on liux.

Package Setup

  • DEBIAN
    • control (required)
    • templates (optional)
    • preinst (optional, chmod 0755)
    • postinst (optional, chmod 0755)
    • prerm (optional, chmod 0755)
    • postrm (optional, chmod 0755)

where:

preinst – this script executes before that package will be unpacked from its Debian archive (“.deb”) file. Many ‘preinst’ scripts stop services for packages which are being upgraded until their installation or upgrade is completed (following the successful execution of the ‘postinst’ script).

postinst – this script typically completes any required configuration of the package foo once it has been unpacked from its Debian archive (“.deb”) file. Often ‘postinst’ scripts ask the user for input, and/or warn the user that if they accept the default values, they should remember to go back and re-configure that package as the situation warrants. Many ‘postinst’ scripts then execute any commands necessary to start or restart a service once a new package has been installed or upgraded.

prerm – this script typically stops any daemons which are associated with a package. It is executed before the removal of files associated with the package.

postrm – this script typically modifies links or other files associated with foo, and/or removes files created by the package.

Build the Package

You should be able to use the package already built in this repo, but if you want/need to build it:

./build-zmq.sh
./build-pkg.sh

Check

You can double check your package with: dpkg-deb --info <deb file>

pi@cyborg zeromq $ sudo ./build-pkg.sh 4.2.2
building OpenCV 4.2.2
dpkg-deb: building package 'zeromq-kevin' in 'libzmq-4.2.2.deb'.

reading debian package: \n
 new debian package, version 2.0.
 size 4839512 bytes: control archive=403 bytes.
     153 bytes,     7 lines   *  control              
       6 bytes,     1 lines   *  install              
     153 bytes,    10 lines   *  postinst             #!/bin/bash
 Package: zeromq-kevin
 Architecture: all
 Maintainer: Kevin
 Depends: debconf (>= 0.5.00)
 Priority: optional
 Version: 4.2.2
 Description: Kevins zmq library

Install

Run:

sudo dpkg -i zeromq-4.2.3.deb

References

Package setup details

Licenses

LGPL License for ZeroMQ

See its license file

MIT License for build scripts

Copyright (c) 2016 Kevin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

Creative Commons License
This documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Releases

No releases published

Packages

No packages published

Languages