README updated
This commit is contained in:
parent
ff24c742f8
commit
c931594f1b
1 changed files with 23 additions and 10 deletions
33
README.md
33
README.md
|
@ -4,11 +4,11 @@ This repository contains scripts for creating deb packages (netxms-server/netxms
|
|||
|
||||
These scripts are used to build official packages which are available on http://packages.netxms.org/.
|
||||
|
||||
Publicly available packages are built for following distributions:
|
||||
Publicly available packages are built for all LTS releases. Currently it's:
|
||||
|
||||
* Debian 10 "Buster" (i386 / amd64)
|
||||
* Debian 11 "Bullseye" (i386 / amd64 / aarch64)
|
||||
* Ubuntu 18.04 LTS "Bionic Beaver" (i386 / amd64)
|
||||
* Debian 10 "buster" (i386 / amd64)
|
||||
* Debian 11 "bullseye" (i386 / amd64 / aarch64)
|
||||
* Debian 12 "bookworm" (i386 / amd64 / aarch64)
|
||||
* Ubuntu 20.04 LTS "Focal Fossa" (i386 / amd64)
|
||||
* Ubuntu 22.04 LTS "Jammy Jellyfish" (i386 / amd64)
|
||||
* Raspbian 10 "Buster" (armv7l)
|
||||
|
@ -17,9 +17,8 @@ Publicly available packages are built for following distributions:
|
|||
|
||||
Branches follow branching layout in netxms/netxms.git:
|
||||
|
||||
* master - development
|
||||
* stable-4.1 - 4.1.x release
|
||||
* stable-4.0 - 4.0.x release
|
||||
* stable-4.4 - 4.4.x release
|
||||
* stable-4.3 - 4.3.x release
|
||||
* …
|
||||
|
||||
# How to use
|
||||
|
@ -29,6 +28,7 @@ Note: commit message for official releases contains both version (e.g. "Version
|
|||
## Prerequisites
|
||||
|
||||
* Custom jemalloc package should be built from [netxms/jemalloc-deb](https://github.com/netxms/jemalloc-deb) and installed into the system or added to pbuilder chroot.
|
||||
* NetXMS fork of libmodbus should be built from [netxms/libmodbus](https://github.com/netxms/libmodbus) and installed into the system or added to pbuilder chroot.
|
||||
* For Ubuntu 20+, libexosip2-dev deb should be built and installed into the system or added to pbuilder chroot.
|
||||
* Latest Oracle instant client should be unpacked to /opt/instantclient_12_2 (both instantclient-basiclite-linux.x64-*.zip and instantclient-sdk-linux.x64-*.zip). Correct symlinks for libclntsh.so should be created there, if missing ([details in Oracle KB](https://support.oracle.com/knowledge/Oracle%20Database%20Products/2519112_1.html)).
|
||||
|
||||
|
@ -36,26 +36,39 @@ Note: commit message for official releases contains both version (e.g. "Version
|
|||
|
||||
```shell
|
||||
mkdir -p netxms-build && cd netxms-build
|
||||
|
||||
# install tools and dependencies
|
||||
sudo apt-get install devscripts
|
||||
sudo apt update && sudo apt install devscripts equivs autoconf libtool flex bison
|
||||
|
||||
git clone https://github.com/netxms/netxms.git
|
||||
cd netxms
|
||||
VERSION=$(git describe|cut -d- -f1,2|sed s,-,.,g)
|
||||
git checkout release-4.4.4 # change release-4.4.4 to target revision
|
||||
./build/prepare_release_build.sh
|
||||
./reconf
|
||||
./configure --with-dist
|
||||
make dist
|
||||
VERSION=$(grep PACKAGE_VERSION config.h | cut -d\" -f2)
|
||||
cd ..
|
||||
|
||||
ln -s netxms/netxms-$VERSION.tar.gz netxms_$VERSION.orig.tar.gz
|
||||
tar zxf netxms/netxms-$VERSION.tar.gz
|
||||
cd netxms-$VERSION
|
||||
|
||||
git clone https://github.com/netxms/packages-deb debian
|
||||
cd debian
|
||||
make DIST=`lsb_release -sc` # make debian/rules and debian/control for particular Debian/Ubuntu release
|
||||
|
||||
# disable Oracle driver, if not required:
|
||||
# mkdir -p config/$(lsb_release -sc)/
|
||||
# echo "define(\`CONFIGURE_ORACLE', \`')dnl" > config/$(lsb_release -sc)/oracle.m4
|
||||
|
||||
make DIST=$(lsb_release -sc) # make debian/rules and debian/control for particular Debian/Ubuntu release
|
||||
cd ..
|
||||
# install build dependencies
|
||||
sudo mk-build-deps -i
|
||||
rm netxms-build-deps_*_all.deb # clean build tree or dpkg-buildpackage will fail
|
||||
|
||||
dpkg-buildpackage --no-sign
|
||||
|
||||
sudo apt-get purge --auto-remove netxms-build-deps # optional step, will cleanup packages installed by mk-build-deps
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue