Skip to content

Commit 6f87f87

Browse files
Rakesh Dattajghalam
authored andcommitted
Initial Feature Code (#1)
* Initial Feature Code Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * Corrected the date in the changelog Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * Updating the Javascripts Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * Adding OPX specific file path Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * Update the copyright in cpu.py Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * Adding correct copyrights Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * updated the string format to correctly map colors for chart Signed-off-by: Rakesh Datta <rakesh.datta@dell.com> * Pull request for bugfix/packaging (#2) * Sort Build-Depends * Simplify future modifications * Add debian/source/format file * Lintian: missing-debian-source-format * Update Standards-Version * Lintian: ancient-standards-version * Change virtual package depends to real package * Lintian: virtual-package-depends-without-real-package-depends * Add debian/copyright * Lintian: no-copyright-file * Fix headers package section * Lintian: wrong-section-according-to-package-name * Add missing python dependency * Lintian: python-script-but-no-python-dep * Add extended descriptions * Lintian: extended-description-is-empty * One dependency per line * Fix libcurl dependency name * Move .so link to -dev package * Lintian: non-dev-pkg-with-shlib-symlink * Clean up autotools code * Alphabetize automake script targets * Use pkg-config for libcurl dependency * Use standard include paths for opx-common-utils dep * Remove unused code in configure.ac Signed-off-by: Rakesh Datta <rakesh.datta@dell.com>
1 parent 8d6618d commit 6f87f87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+13300
-0
lines changed

Makefile.am

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
ACLOCAL_AMFLAGS = -I m4
2+
SUBDIRS = inc
3+
4+
COMMON_HARDEN_FLAGS = -fexceptions -fstack-protector-strong -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wall -Wformat -Wformat-security -Werror
5+
C_HARDEN_FLAGS = -Wimplicit-function-declaration
6+
LD_HARDEN_FLAGS = -Wl,-z,defs -Wl,-z,now
7+
8+
lib_LTLIBRARIES = libopx_system_utils.la
9+
libopx_system_utils_la_SOURCES = src/sys_utils_file_transfer.c
10+
libopx_system_utils_la_CPPFLAGS = $(COMMON_HARDEN_FLAGS) $(libcurl_CFLAGS) -D_FILE_OFFSET_BITS=64 -fPIC -I$(top_srcdir)/inc/opx
11+
libopx_system_utils_la_CXXFLAGS = -std=c++11
12+
libopx_system_utils_la_CFLAGS = $(C_HARDEN_FLAGS)
13+
libopx_system_utils_la_LDFLAGS = $(LD_HARDEN_FLAGS) -shared -version-info 1:1:0
14+
libopx_system_utils_la_LIBADD = $(libcurl_LIBS) -lopx_common
15+
16+
pluginsdir = /usr/lib/opx/sys-utils/plugins
17+
plugins_SCRIPTS = scripts/lib/python/plugins/*.py
18+
19+
pyutilsdir = /usr/lib/opx/sys-utils
20+
pyutils_SCRIPTS = scripts/lib/python/*.py
21+
22+
staticdir = /usr/lib/opx/sys-utils/images
23+
static_SCRIPTS = scripts/lib/python/images/*
24+
25+
uidir = /usr/lib/opx/sys-utils/templates
26+
ui_SCRIPTS = scripts/lib/python/templates/*
27+
28+
webdir = /usr/lib/opx/sys-utils/scripts
29+
web_SCRIPTS = scripts/lib/python/scripts/*
30+
31+
systemdconfdir = /lib/systemd/system
32+
systemdconf_DATA = scripts/init/*.service
33+

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
AC_PREREQ([2.69])
2+
AC_INIT([opx-system-utils], [0.1.0], [ops-dev@lists.openswitch.net])
3+
AM_INIT_AUTOMAKE([foreign subdir-objects])
4+
AC_CONFIG_SRCDIR([configure.ac])
5+
AC_CONFIG_HEADERS([config.h])
6+
AC_CONFIG_MACRO_DIRS([m4])
7+
8+
AM_PATH_PYTHON
9+
AC_PROG_CC
10+
PKG_CHECK_MODULES([libcurl], [libcurl])
11+
LT_INIT([shared])
12+
13+
AC_CONFIG_FILES([Makefile inc/Makefile])
14+
AC_OUTPUT

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
opx-system-utils (0.1.0) unstable; urgency=medium
2+
3+
* Initial release
4+
5+
-- Dell EMC <ops-dev@lists.openswitch.net> Tue, 23 Oct 2018 15:10:11 -0700

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Source: opx-system-utils
2+
Section: net
3+
Priority: optional
4+
Maintainer: Dell EMC <ops-dev@lists.openswitch.net>
5+
Build-Depends: debhelper (>= 9),
6+
autotools-dev,
7+
dh-autoreconf,
8+
dh-python,
9+
dh-systemd,
10+
libcurl4-openssl-dev,
11+
libopx-common-dev (>= 1.4.0),
12+
libsystemd-dev,
13+
pkg-config,
14+
python-dev,
15+
python-requests,
16+
Standards-Version: 3.9.8
17+
Vcs-Browser: https://github.com/open-switch/opx-system-utils
18+
Vcs-Git: https://github.com/open-switch/opx-system-utils.git
19+
20+
Package: libopx-system-utils1
21+
Architecture: any
22+
Depends: ${shlibs:Depends},
23+
${misc:Depends},
24+
libcurl3,
25+
libopx-common1 (>= 1.4.0),
26+
Description: This package contains system utilities.
27+
OPX system utilities for monitoring equipment health.
28+
29+
Package: libopx-system-utils-dev
30+
Architecture: any
31+
Section: libdevel
32+
Depends: ${misc:Depends},
33+
libopx-common-dev (>= 1.4.0),
34+
libopx-system-utils1 (=${binary:Version}),
35+
Description: This package contains system utilities.
36+
OPX system utilities for monitoring equipment health.
37+
38+
Package: opx-system-utils
39+
Architecture: any
40+
Depends: ${shlibs:Depends},
41+
${misc:Depends},
42+
${python:Depends},
43+
python,
44+
python-requests,
45+
Description: This package contains system utilities
46+
OPX system utilities for monitoring equipment health.

debian/copyright

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: opx-system-utils
3+
Upstream-Contact: Dell EMC <ops-dev@lists.openswitch.net>
4+
Source: https://github.com/open-switch/opx-system-utils
5+
6+
Files: *
7+
Copyright: 2018 Dell Inc.
8+
License: Apache-2.0
9+
Licensed under the Apache License, Version 2.0 (the "License");
10+
you may not use this file except in compliance with the License.
11+
You may obtain a copy of the License at
12+
.
13+
http://www.apache.org/licenses/LICENSE-2.0
14+
.
15+
Unless required by applicable law or agreed to in writing, software
16+
distributed under the License is distributed on an "AS IS" BASIS,
17+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
See the License for the specific language governing permissions and
19+
limitations under the License.
20+
.
21+
On Debian systems, the complete text of the Apache License, Version 2
22+
can be found in "/usr/share/common-licenses/Apache-2.0".
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/include
2+
usr/lib/*/*.so
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/lib/*/*.so.*

debian/opx-system-utils.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/lib/opx/sys-utils/*
2+
lib/systemd/*

debian/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/make -f
2+
3+
%:
4+
dh $@ --with autoreconf,python2,systemd

0 commit comments

Comments
 (0)