Rename some files, remove links to unused libraries on binaries and some cleanup
This commit is contained in:
parent
eff56664c3
commit
746deece73
|
@ -26,6 +26,7 @@ m4/*
|
||||||
misc/apache.conf
|
misc/apache.conf
|
||||||
misc/com.zoneminder.systemctl.policy
|
misc/com.zoneminder.systemctl.policy
|
||||||
misc/com.zoneminder.systemctl.rules
|
misc/com.zoneminder.systemctl.rules
|
||||||
|
misc/libzm.pc
|
||||||
misc/logrotate.conf
|
misc/logrotate.conf
|
||||||
misc/syslog.conf
|
misc/syslog.conf
|
||||||
misc/plugins.conf
|
misc/plugins.conf
|
||||||
|
@ -64,7 +65,6 @@ src/.libs/
|
||||||
src/*.la
|
src/*.la
|
||||||
src/*.lo
|
src/*.lo
|
||||||
src/*.o
|
src/*.o
|
||||||
src/libzmplugins.pc
|
|
||||||
src/zm_config.h
|
src/zm_config.h
|
||||||
src/zm_config_defines.h
|
src/zm_config_defines.h
|
||||||
src/zma
|
src/zma
|
||||||
|
|
|
@ -600,7 +600,7 @@ fi
|
||||||
AC_SUBST(PERL_MM_PARMS)
|
AC_SUBST(PERL_MM_PARMS)
|
||||||
AC_SUBST(EXTRA_PERL_LIB)
|
AC_SUBST(EXTRA_PERL_LIB)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile zm.conf zmconfgen.pl db/Makefile db/zm_create.sql misc/Makefile misc/apache.conf misc/logrotate.conf misc/syslog.conf misc/com.zoneminder.systemctl.policy misc/com.zoneminder.systemctl.rules misc/plugins.conf onvif/Makefile onvif/scripts/Makefile scripts/Makefile scripts/zm scripts/zmaudit.pl scripts/zmcontrol.pl scripts/zmdc.pl scripts/zmfilter.pl scripts/zmpkg.pl scripts/zmtrack.pl scripts/zmcamtool.pl scripts/zmsystemctl.pl scripts/zmtrigger.pl scripts/zmupdate.pl scripts/zmvideo.pl scripts/zmwatch.pl scripts/zmx10.pl scripts/zmdbbackup scripts/zmdbrestore scripts/zmeventdump scripts/zmlogrotate.conf scripts/ZoneMinder/lib/ZoneMinder/Base.pm scripts/ZoneMinder/lib/ZoneMinder/Config.pm scripts/ZoneMinder/lib/ZoneMinder/Memory.pm scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm src/Makefile src/zm_config.h src/libzmplugins.pc web/Makefile web/ajax/Makefile web/css/Makefile web/graphics/Makefile web/includes/Makefile web/includes/config.php web/js/Makefile web/lang/Makefile web/skins/Makefile web/skins/classic/Makefile web/skins/classic/ajax/Makefile web/skins/classic/css/Makefile web/skins/classic/css/classic/Makefile web/skins/classic/css/classic/views/Makefile web/skins/classic/css/flat/Makefile web/skins/classic/css/flat/views/Makefile web/skins/classic/graphics/Makefile web/skins/classic/includes/Makefile web/skins/classic/js/Makefile web/skins/classic/lang/Makefile web/skins/classic/views/Makefile web/skins/classic/views/js/Makefile web/skins/mobile/Makefile web/skins/mobile/ajax/Makefile web/skins/mobile/css/Makefile web/skins/mobile/graphics/Makefile web/skins/mobile/includes/Makefile web/skins/mobile/lang/Makefile web/skins/mobile/views/Makefile web/skins/mobile/views/css/Makefile web/tools/Makefile web/tools/mootools/Makefile web/views/Makefile web/skins/xml/Makefile web/skins/xml/views/Makefile web/skins/xml/includes/Makefile])
|
AC_CONFIG_FILES([Makefile zm.conf zmconfgen.pl db/Makefile db/zm_create.sql misc/Makefile misc/apache.conf misc/libzm.pc misc/logrotate.conf misc/syslog.conf misc/com.zoneminder.systemctl.policy misc/com.zoneminder.systemctl.rules misc/plugins.conf onvif/Makefile onvif/scripts/Makefile scripts/Makefile scripts/zm scripts/zmaudit.pl scripts/zmcontrol.pl scripts/zmdc.pl scripts/zmfilter.pl scripts/zmpkg.pl scripts/zmtrack.pl scripts/zmcamtool.pl scripts/zmsystemctl.pl scripts/zmtrigger.pl scripts/zmupdate.pl scripts/zmvideo.pl scripts/zmwatch.pl scripts/zmx10.pl scripts/zmdbbackup scripts/zmdbrestore scripts/zmeventdump scripts/zmlogrotate.conf scripts/ZoneMinder/lib/ZoneMinder/Base.pm scripts/ZoneMinder/lib/ZoneMinder/Config.pm scripts/ZoneMinder/lib/ZoneMinder/Memory.pm scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm src/Makefile src/zm_config.h web/Makefile web/ajax/Makefile web/css/Makefile web/graphics/Makefile web/includes/Makefile web/includes/config.php web/js/Makefile web/lang/Makefile web/skins/Makefile web/skins/classic/Makefile web/skins/classic/ajax/Makefile web/skins/classic/css/Makefile web/skins/classic/css/classic/Makefile web/skins/classic/css/classic/views/Makefile web/skins/classic/css/flat/Makefile web/skins/classic/css/flat/views/Makefile web/skins/classic/graphics/Makefile web/skins/classic/includes/Makefile web/skins/classic/js/Makefile web/skins/classic/lang/Makefile web/skins/classic/views/Makefile web/skins/classic/views/js/Makefile web/skins/mobile/Makefile web/skins/mobile/ajax/Makefile web/skins/mobile/css/Makefile web/skins/mobile/graphics/Makefile web/skins/mobile/includes/Makefile web/skins/mobile/lang/Makefile web/skins/mobile/views/Makefile web/skins/mobile/views/css/Makefile web/tools/Makefile web/tools/mootools/Makefile web/views/Makefile web/skins/xml/Makefile web/skins/xml/views/Makefile web/skins/xml/includes/Makefile])
|
||||||
|
|
||||||
# Create the definitions for compilation and defaults for the database
|
# Create the definitions for compilation and defaults for the database
|
||||||
AC_CONFIG_COMMANDS([src/zm_config_defines.h],[perl ./zmconfgen.pl])
|
AC_CONFIG_COMMANDS([src/zm_config_defines.h],[perl ./zmconfgen.pl])
|
||||||
|
|
|
@ -39,10 +39,10 @@ Description: Debugging symbols for zoneminder.
|
||||||
and surveillance. It can also be integrated into a home automation system
|
and surveillance. It can also be integrated into a home automation system
|
||||||
via X.10 or other protocols.
|
via X.10 or other protocols.
|
||||||
|
|
||||||
Package: zoneminder-dev
|
Package: libzoneminder-dev
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: zoneminder (= ${binary:Version}), ${misc:Depends}
|
Depends: ${misc:Depends}
|
||||||
Description: Development files for ZoneMinder plugins
|
Description: Development files for ZoneMinder plugins
|
||||||
This package add the necessary files to develop video analysis plugins for
|
This package add the necessary files to develop video analysis plugins for
|
||||||
the ZoneMinder camera security and surveillance solution.
|
the ZoneMinder camera security and surveillance solution.
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
usr/include/zoneminder/*
|
||||||
|
usr/lib/*/libzm.a
|
||||||
|
usr/lib/*/pkgconfig/libzm.pc
|
|
@ -1,3 +0,0 @@
|
||||||
usr/include/zoneminder/*
|
|
||||||
usr/lib/*/libzmplugins.a
|
|
||||||
usr/lib/*/pkgconfig/libzmplugins.pc
|
|
|
@ -43,7 +43,7 @@ Description: Perl libraries for ZoneMinder
|
||||||
Package: libzoneminder-dev
|
Package: libzoneminder-dev
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
Depends: ${misc:Depends}
|
||||||
Description: Development library for ZoneMinder plugins
|
Description: Development library for ZoneMinder plugins
|
||||||
ZoneMinder is a video camera security and surveillance solution.
|
ZoneMinder is a video camera security and surveillance solution.
|
||||||
.
|
.
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
usr/include/zoneminder
|
||||||
|
usr/lib/*/libzm.a
|
||||||
|
usr/lib/*/pkgconfig/libzm.pc
|
|
@ -1,3 +0,0 @@
|
||||||
usr/include/zoneminder
|
|
||||||
usr/lib/*/libzmplugins.a
|
|
||||||
usr/lib/*/pkgconfig/libzmplugins.pc
|
|
|
@ -6,15 +6,22 @@ EXTRA_DIST = \
|
||||||
syslog.conf.in \
|
syslog.conf.in \
|
||||||
zoneminder-tmpfiles.conf.in \
|
zoneminder-tmpfiles.conf.in \
|
||||||
zoneminder.service.in \
|
zoneminder.service.in \
|
||||||
com.zoneminder.systemctl.policy.in \
|
com.zoneminder.systemctl.policy.in \
|
||||||
com.zoneminder.systemctl.rules.in \
|
com.zoneminder.systemctl.rules.in
|
||||||
plugins.conf.in
|
|
||||||
|
if ZM_HAS_PLUGIN_SUPPORT
|
||||||
|
EXTRA_DIST += plugins.conf.in
|
||||||
|
|
||||||
|
# Install a pkg-config file for a proper handling of the libzm
|
||||||
|
# convenience library
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = libzm.pc
|
||||||
|
|
||||||
|
sysconf_DATA = plugins.conf
|
||||||
|
endif
|
||||||
|
|
||||||
polkit_actiondir = @POLKIT_PREFIX@/share/polkit-1/actions
|
polkit_actiondir = @POLKIT_PREFIX@/share/polkit-1/actions
|
||||||
dist_polkit_action_DATA = com.zoneminder.systemctl.policy
|
dist_polkit_action_DATA = com.zoneminder.systemctl.policy
|
||||||
|
|
||||||
polkit_rulesdir = @POLKIT_PREFIX@/share/polkit-1/rules.d
|
polkit_rulesdir = @POLKIT_PREFIX@/share/polkit-1/rules.d
|
||||||
dist_polkit_rules_DATA = com.zoneminder.systemctl.rules
|
dist_polkit_rules_DATA = com.zoneminder.systemctl.rules
|
||||||
|
|
||||||
sysconf_DATA = plugins.conf
|
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ zm_SOURCES = \
|
||||||
zm_exception.cpp \
|
zm_exception.cpp \
|
||||||
zm_file_camera.cpp \
|
zm_file_camera.cpp \
|
||||||
zm_ffmpeg_camera.cpp \
|
zm_ffmpeg_camera.cpp \
|
||||||
zm_libvlc_camera.cpp \
|
zm_libvlc_camera.cpp \
|
||||||
zm_local_camera.cpp \
|
zm_local_camera.cpp \
|
||||||
zm_monitor.cpp \
|
zm_monitor.cpp \
|
||||||
zm_ffmpeg.cpp \
|
zm_ffmpeg.cpp \
|
||||||
|
@ -56,7 +56,7 @@ zm_SOURCES = \
|
||||||
zm_user.cpp \
|
zm_user.cpp \
|
||||||
$(SOURCES_common)
|
$(SOURCES_common)
|
||||||
|
|
||||||
# These source files are used both for zm binaries and the libzmplugins
|
# These source files are used both for zm binaries and the libzm
|
||||||
# convenience library
|
# convenience library
|
||||||
SOURCES_common = \
|
SOURCES_common = \
|
||||||
zm_config.cpp \
|
zm_config.cpp \
|
||||||
|
@ -69,7 +69,7 @@ SOURCES_common = \
|
||||||
zm_thread.cpp \
|
zm_thread.cpp \
|
||||||
zm_zone.cpp
|
zm_zone.cpp
|
||||||
|
|
||||||
# These header files are used both for zm binaries and the libzmplugins
|
# These header files are used both for zm binaries and the libzm
|
||||||
# convenience library
|
# convenience library
|
||||||
HEADERS_common = \
|
HEADERS_common = \
|
||||||
jinclude.h \
|
jinclude.h \
|
||||||
|
@ -101,10 +101,12 @@ zmstreamer_SOURCES = zmstreamer.cpp $(zm_SOURCES)
|
||||||
|
|
||||||
# These libraries are linked only to zm binaries in order to avoid detection
|
# These libraries are linked only to zm binaries in order to avoid detection
|
||||||
# of unwanted dependencies during plugin packaging
|
# of unwanted dependencies during plugin packaging
|
||||||
zm_LDADD = @DL_LIBS@ @PCRE_LIBS@ @CURL_LIBS@ @BZ2_LIBS@ @X264_LIBS@ \
|
zm_LDADD = @DL_LIBS@ @PCRE_LIBS@ @CURL_LIBS@ @SWSCALE_LIBS@ @AVFORMAT_LIBS@ \
|
||||||
@SWSCALE_LIBS@ @AVFORMAT_LIBS@ @AVCODEC_LIBS@ @AVUTIL_LIBS@ \
|
@AVCODEC_LIBS@ @AVUTIL_LIBS@ @AVCORE_LIBS@ @VLC_LIBS@ @CRYPTO_LIBS@ \
|
||||||
@AVDEVICE_LIBS@ @AVCORE_LIBS@ @VLC_LIBS@ @CRYPTO_LIBS@ @GCRYPT_LIBS@ \
|
@GCRYPT_LIBS@ @GNUTLS_OPENSSL_LIBS@
|
||||||
@GNUTLS_LIBS@ @GNUTLS_OPENSSL_LIBS@
|
|
||||||
|
# Additionnal libraries to be added manually if required
|
||||||
|
# BZ2_LIBS X264_LIBS AVDEVICE_LIBS GNUTLS_LIBS
|
||||||
|
|
||||||
zmc_LDADD = $(zm_LDADD)
|
zmc_LDADD = $(zm_LDADD)
|
||||||
zma_LDADD = $(zm_LDADD)
|
zma_LDADD = $(zm_LDADD)
|
||||||
|
@ -123,7 +125,7 @@ noinst_HEADERS = \
|
||||||
zm_file_camera.h \
|
zm_file_camera.h \
|
||||||
zm_ffmpeg_camera.h \
|
zm_ffmpeg_camera.h \
|
||||||
zm_font.h \
|
zm_font.h \
|
||||||
zm_libvlc_camera.h \
|
zm_libvlc_camera.h \
|
||||||
zm_local_camera.h \
|
zm_local_camera.h \
|
||||||
zm_monitor.h \
|
zm_monitor.h \
|
||||||
zm_regexp.h \
|
zm_regexp.h \
|
||||||
|
@ -151,12 +153,12 @@ zm_SOURCES += \
|
||||||
zm_plugin_manager.cpp
|
zm_plugin_manager.cpp
|
||||||
|
|
||||||
# Build a convenience library for plugin development
|
# Build a convenience library for plugin development
|
||||||
noinst_LTLIBRARIES = libzmplugins.la
|
noinst_LTLIBRARIES = libzm.la
|
||||||
libzmplugins_la_SOURCES = zm_detector.cpp $(SOURCES_common)
|
libzm_la_SOURCES = zm_detector.cpp $(SOURCES_common)
|
||||||
|
|
||||||
# A hack to avoid conflicts between objects created both with libtool
|
# A hack to avoid conflicts between objects created both with libtool
|
||||||
# and without (objects will be prefixed with "libzmplugins_la")
|
# and without (objects will be prefixed with "libzm_la")
|
||||||
libzmplugins_la_CPPFLAGS = $(AM_CPPFLAGS)
|
libzm_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||||
|
|
||||||
# Install the necessary headers for plugin development
|
# Install the necessary headers for plugin development
|
||||||
pkginclude_HEADERS = \
|
pkginclude_HEADERS = \
|
||||||
|
@ -165,11 +167,6 @@ pkginclude_HEADERS = \
|
||||||
zm_plugin.h \
|
zm_plugin.h \
|
||||||
zm_plugin_manager.h \
|
zm_plugin_manager.h \
|
||||||
$(HEADERS_common)
|
$(HEADERS_common)
|
||||||
|
|
||||||
# Install a pkg-config file for a proper handling of the libzmplugins
|
|
||||||
# convenience library
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
|
||||||
pkgconfig_DATA = libzmplugins.pc
|
|
||||||
else
|
else
|
||||||
# Don't intall plugin headers if no support
|
# Don't intall plugin headers if no support
|
||||||
noinst_HEADERS += \
|
noinst_HEADERS += \
|
||||||
|
@ -188,14 +185,14 @@ dist-hook:
|
||||||
@( rm $(distdir)/zm_config.h )
|
@( rm $(distdir)/zm_config.h )
|
||||||
|
|
||||||
# Yes, you are correct. This is a HACK!
|
# Yes, you are correct. This is a HACK!
|
||||||
# And the manual installation of libzmplugins.a is necessary because libtool has
|
# And the manual installation of libzm.a is necessary because libtool has
|
||||||
# no option to force installation of convenience libraries.
|
# no option to force installation of convenience libraries.
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
( cd $(DESTDIR)@bindir@; mkdir -p $(DESTDIR)$(cgidir); mv zms $(DESTDIR)$(cgidir) )
|
( cd $(DESTDIR)@bindir@; mkdir -p $(DESTDIR)$(cgidir); mv zms $(DESTDIR)$(cgidir) )
|
||||||
( cd $(DESTDIR)$(cgidir); chown $(webuser):$(webgroup) zms; ln -f zms nph-zms )
|
( cd $(DESTDIR)$(cgidir); chown $(webuser):$(webgroup) zms; ln -f zms nph-zms )
|
||||||
install -D -m 644 .libs/libzmplugins.a $(DESTDIR)$(libdir)/libzmplugins.a
|
install -D -m 644 .libs/libzm.a $(DESTDIR)$(libdir)/libzm.a
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
( cd $(DESTDIR)$(cgidir); rm -f zms nph-zms )
|
( cd $(DESTDIR)$(cgidir); rm -f zms nph-zms )
|
||||||
( cd $(DESTDIR)$(libdir); rm -f libzmplugins.a )
|
( cd $(DESTDIR)$(libdir); rm -f libzm.a )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue