BroadbandForum / obudpst

OB-UDPST is a client/server utility to do UDP-based IP capacity measurements (see TR-471 for details).
BSD 3-Clause "New" or "Revised" License
41 stars 14 forks source link

Added RPM package capability #2

Open mrdvt92 opened 3 years ago

mrdvt92 commented 3 years ago

Added RPM package capability

To build RPM, install and start service.

$ sudo yum install git rpm-build yum-utils epel-release   #install epel with git, rpm and yum tools
$ git clone https://github.com/mrdvt92/obudpst            #after merge https://github.com/BroadbandForum/obudpst
$ cd obudpst
$ sudo yum-builddep udpst.spec                            #install build dependencies cmake3 and pandoc are from epel
$ git archive --format=tar.gz -o udpst-7.5.0.tar.gz --prefix=udpst-7.5.0/ main
$ rpmbuild -ta udpst-7.5.0.tar.gz
$ sudo yum install udpst-7.5.0-*.el7.x86_64.rpm           #client base package with binary
$ sudo yum install udpst-server-7.5.0-*.el7.x86_64.rpm    #server package with systemd and firewall ports
$ sudo systemctl start udpst 
souryendudas commented 3 years ago

image I have all the dependencies installed. I am unable to run "rpmbuild -ta udpst-7.1.0.tar.gz"

I am unable to build the repository and run anything

acmacm commented 3 years ago

How about just cloning the repo and running $ cmake . and $ make

From: souryendudas @.> Sent: Monday, June 21, 2021 6:18 PM To: BroadbandForum/obudpst @.> Cc: Subscribed @.***> Subject: Re: [BroadbandForum/obudpst] Added RPM package capability (#2)

[image]https://urldefense.com/v3/__https:/user-images.githubusercontent.com/37900365/122834520-f2391580-d2ab-11eb-899c-aaf2015c55a9.png__;!!BhdT!3yhaSCbhIYfgaD0I3Ax2zbrnFyIqmIF7_h8PX-6sRgxoDGsS7GGqIj0XlyZz$ I have all the dependencies installed. I am unable to run "rpmbuild -ta udpst-7.1.0.tar.gz"

I am unable to build the repository and run anything

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/BroadbandForum/obudpst/pull/2*issuecomment-865381394__;Iw!!BhdT!3yhaSCbhIYfgaD0I3Ax2zbrnFyIqmIF7_h8PX-6sRgxoDGsS7GGqItvriVt6$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACILYGDAEBDSA6MH42BCP2TTT63AZANCNFSM4ZNHMZ7A__;!!BhdT!3yhaSCbhIYfgaD0I3Ax2zbrnFyIqmIF7_h8PX-6sRgxoDGsS7GGqIip908De$.

mrdvt92 commented 3 years ago

How about just cloning the repo and running $ cmake . and $ make

On CentOS 7, you must use cmake3 not cmake. cmake3 is available from epel.

I updated the steps above with steps to add dependencies. I tested steps on a centos:7 docker image but without systemd.

To build on Centos 7 without spec file

$ sudo yum install epel-release
$ sudo yum install cmake3 make gcc-c++ openssl-devel
$ cmake3 -DCMAKE_INSTALL_PREFIX=/usr .
$ make
mrdvt92 commented 2 years ago

Updated spec file for 7.5.0 version

mrdvt92 commented 1 year ago

I uploaded the RPMs to the release https://github.com/mrdvt92/obudpst/releases

acmacm commented 1 year ago

Thanks Michael!