Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torrent added script #18

Open
wants to merge 117 commits into
base: 0.7x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
2d7b776
- Merge from 0.7x branch
1100101 Jan 3, 2012
86e5247
- Repository cleanup
1100101 Jan 9, 2012
ff9d5ec
- More cleanup
1100101 Jan 9, 2012
204b2cc
Revert "- More cleanup"
1100101 Jan 9, 2012
4325e6c
- More cleanup
1100101 Jan 9, 2012
89a3996
Merge branch '0.7x'
1100101 Jan 9, 2012
6e62154
- Cleanup
1100101 Jan 9, 2012
5bdeeb2
- Fix segfault when URL request was redirected and 2nd header didn't …
1100101 Feb 10, 2012
485cb46
Support for magnet URIs (blindly coded, not yet compiled!)
1100101 Mar 2, 2012
20a6c13
Merge branch 'master' of github.com:1100101/Automatic
1100101 Mar 2, 2012
f4b1239
Cleanup
1100101 Mar 13, 2012
a589fe8
Blergh
1100101 Mar 16, 2012
310b1f3
URL rewrite functionaliy
1100101 Mar 16, 2012
3f6c9dc
toLower() function
1100101 Mar 22, 2012
1d0ce99
Remove unused code
1100101 Mar 22, 2012
b9f4a0c
Cosmetics
1100101 Mar 22, 2012
2d98ced
New undocumented command-line option --match-only/-m:
1100101 Mar 22, 2012
78134e1
Determine number of capture groups at runtime
1100101 Mar 22, 2012
7569fd9
Updated .gitignore
1100101 Mar 22, 2012
9a081af
Updated tests
1100101 Mar 22, 2012
069d1b7
Fix crash when empty string was specified in automatic.conf
1100101 Mar 25, 2012
6e07019
- Reworked config parser, now linebreaks are allowed for quoted strings
1100101 Mar 28, 2012
c597125
- Remove autoconf/automake files that can be generated from repositor…
1100101 May 30, 2012
dfd95cf
Remove some unused variables
1100101 May 30, 2012
938187a
Use bool and true/false instead of uint8_t and 0/1
1100101 May 30, 2012
d266a99
Deal with SIGHUP
1100101 May 30, 2012
737ca39
Demote some output to debug level
1100101 May 31, 2012
3b0b690
Demote some output to debug level
1100101 May 31, 2012
d3ecf7e
Minor code cleanup
1100101 May 31, 2012
1784dd2
Actually catch the SIGHUP signal
1100101 May 31, 2012
32b432b
Demote some output to debug level
1100101 May 31, 2012
9032c01
Make config reloading more robust
1100101 May 31, 2012
a572c52
Updated ChangeLog
1100101 May 31, 2012
f21c7f1
Ignore core files in repositry
1100101 May 31, 2012
97d72cf
- Fix trailing whitespaces
1100101 Jun 4, 2012
e06094e
Cosmetics
1100101 Jun 5, 2012
1d0bf03
Produce detailed error message for Transmission errorcodes 401 & 403
1100101 Jun 5, 2012
3080643
Set curl User-Agent (Fixes problems with some sites)
1100101 Jun 6, 2012
383cd2a
- Previous commit regarding proper error message was wrong. This fixe…
1100101 Jun 6, 2012
1ac8250
- Fixed file permissions on header files
1100101 Jun 12, 2012
2c5b64c
- Fix: Configure libcurl to accept encoded packages (gzip, deflate)
1100101 Jun 12, 2012
9ad87b3
Fix: Since supporting compressed responses from web servers ("Accept-…
1100101 Jun 13, 2012
9a477d2
Updated Changelog
1100101 Jun 13, 2012
01e63f4
- Fix: Made buffer allocation code in web.c more robust
1100101 Jun 13, 2012
ba42c15
Fix assertion: *data must be NULL
1100101 Jun 13, 2012
479b85d
Fix: The new code that resizes the response data buffer was still fau…
1100101 Jun 13, 2012
207e13a
Updated configuration sample
1100101 Jun 14, 2012
7cbc880
Fix compiler warning
1100101 Jun 14, 2012
95ada5c
Bump version to 0.8.0
1100101 Jun 14, 2012
1113539
Use recommended prowlapp.com api url
deflomu Jun 18, 2012
43588e3
Merge pull request #1 from elm/fix-prowl-url
1100101 Jun 19, 2012
48325d6
Switch back to experimental builds
1100101 Jun 19, 2012
1372d56
Missing include
1100101 Aug 28, 2012
d27366a
New method am_replace_str() for string replacments
1100101 Aug 28, 2012
7ae7890
Unit tests for new method am_replace_str()
1100101 Aug 28, 2012
8c92920
Fix memory overflow in am_replace_str()
1100101 Aug 28, 2012
9a8c60b
Updated .gitignore
1100101 Aug 28, 2012
b2ff574
Changed behavior of am_replace_str():
1100101 Aug 28, 2012
7ff4531
Change file permissions
1100101 Aug 28, 2012
7c2a565
Strip escaped whitespace from "folder" suboptions in filter {} elements.
1100101 Aug 28, 2012
2e1d120
Updated Changelog
1100101 Aug 28, 2012
b991926
Fix: Don't assume any min length for a GUID
1100101 Nov 12, 2012
6a3d8de
Prepare new release
1100101 Nov 12, 2012
4b6203b
Made installation instructions clear (step-by-step-instructions)
HoffmannP Jan 8, 2013
72bb72f
Merge pull request #4 from HoffmannP/master
1100101 Jan 8, 2013
c78838d
Fix: Properly check the contents of an <enclosure> tag before accessi…
1100101 Jan 10, 2013
de42ed1
Update README
1100101 Jan 15, 2013
1788344
Cosmetics
1100101 Jan 17, 2013
428380e
- Print warning when stumbling on a magnet URI, but use of Transmissi…
1100101 Jan 17, 2013
2a2f864
Fix: Some download URLs were getting too large for a static string bu…
1100101 Jan 17, 2013
19f7c7a
Updated Changelog
1100101 Jan 17, 2013
4ceb0cc
Bump version to 0.8.2
1100101 Jan 17, 2013
80c4d88
Update INSTALL, ./autgen.sh needs automake
Jan 24, 2013
c344265
Cleanup: Remove trailing whitespace
1100101 Feb 1, 2013
ba04cf0
Fix compiler warning (missing ínclud)
1100101 Feb 1, 2013
31c7c76
Use different method of storing strings in state file
1100101 Apr 4, 2013
8da96e7
Don't assume that HTTP header options are always written with the sam…
1100101 Apr 4, 2013
7059845
Bump version to v0.8.3
1100101 Apr 4, 2013
b4ea79e
Update INSTALL
mikker Jun 17, 2013
de2ddd2
Merge pull request #7 from movesmyers/master
1100101 Jun 21, 2013
f8a32a4
Merge pull request #8 from mikker/patch-1
1100101 Jun 21, 2013
763d320
Fix another typo
1100101 Jun 21, 2013
4476d39
Fix possible memory leak when encountering an invalid option in the c…
1100101 Jul 2, 2013
5961678
Rename configure.in to configure.ac
1100101 Aug 22, 2013
93b1eaf
First part of support for Toasty (Push notifications for Windows Phone)
1100101 Aug 22, 2013
408978e
Updated .gitignore
1100101 Aug 22, 2013
c59528b
Everyone should use their own device ID
1100101 Aug 22, 2013
12573f1
Fix some warnings produced by automake 1.14
1100101 Aug 23, 2013
2514193
Updated .gitignore
1100101 Aug 23, 2013
c4f3460
Support Toasty, Part 2 (push notifications for Windows Phone)
1100101 Aug 23, 2013
817c2c8
Add support for Pushalot Windows Phone/Windows 8 Push Notification se…
1100101 Feb 19, 2014
cdccc03
Fix file permissions
1100101 Feb 19, 2014
3a59d69
Disable automake dependency tracking, cause it caused build errors
1100101 Feb 19, 2014
5d91878
Updated .gitignore file
1100101 Feb 19, 2014
7108282
Add Travis config file
1100101 Oct 8, 2014
3d790c7
Add coverity scan to Travis config
1100101 Oct 8, 2014
e38ad04
Fix issues found by Coverity scan
1100101 Oct 8, 2014
6e7ac2d
Fix compilation (that happens when you commit without compiling first…
1100101 Oct 8, 2014
1cbb77c
Updated Travis CI config so it only builds for gcc (also: Don't do Co…
1100101 Oct 8, 2014
a982c5d
Some more fixes to make Coverity happy
1100101 Oct 8, 2014
0275f37
adding pidfile support with -p option
Jan 5, 2015
12d0057
fine tuning ouput and log
Jan 6, 2015
eb2d1fc
Fix: gPidfile was not assigned for closing
Jan 6, 2015
af3157e
Merge pull request #13 from benoitm974/with-pidfile
1100101 Mar 17, 2015
70f8a37
Added Pushover support.
Jan 25, 2016
0b8355f
Merge pull request #17 from sewk/master
1100101 Mar 10, 2016
550dc81
Remove support for Pushalot and Toasty push notification services, as…
1100101 Apr 5, 2020
cc988b8
Update README, compile dependencies, and new repository location
1100101 Apr 5, 2020
1266114
Fix issue with daemonize() not initializing correctly
1100101 Jul 4, 2021
e14b738
remove commented code
1100101 Jan 27, 2022
465febc
Update version & ChangeLog
1100101 Jan 27, 2022
6301c30
Merge branch 'release/0.9'
1100101 Jan 27, 2022
e127343
Add CMake support (#22)
1100101 May 1, 2023
2e3a921
add missed header in utils_test (#20)
SpiderX May 1, 2023
80d0855
Fix a couple of compiler warnings/errors. (#23)
1100101 May 1, 2023
6d00d37
Fixup: The CMake build was missing the creation of a `version.h` head…
1100101 May 2, 2023
2803cb1
Fix compilation of unittests (#25)
1100101 May 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 41 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,44 @@
src/automatic.conf
src/*.o
src/automatic
src/automatic-mw
Makefile
Makefile.in
depcomp
install-sh
missing
aclocal.m4
configure
config.log
config.status
src/.deps
src/tests/.deps
Makefile

compile
test-driver

*.o
*.log

# http://www.gnu.org/software/autoconf

/build
/depcomp
/install-sh
/missing
/aclocal.m4
/autom4te.cache
/configure
/configure.in
/config.log
/config.status
/configure.lineno

.deps

src/automatic
src/version.h
src/automatic.state
src/*.log
src/Makefile.in
src/tests/Makefile.in
autom4te.cache/
configure.lineno
Makefile.in
src/Makefile.in
src/tests/Makefile.in
configure
aclocal.m4
src/automatic-mw
src/automatic.conf
src/core
src/.dirstamp

src/tests/utils_test
src/tests/parser_test
src/tests/base64_test
src/tests/list_test
src/tests/http_test
src/tests/prowl_test
src/tests/json_test
src/tests/regex_test
src/tests/toasty_test
src/tests/pushalot_test
src/tests/*.trs
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: c
compiler: gcc

env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "Ysin0s3j16SENbMtvulpD9vB1YwjQdGkLp5F9RRQCC0t7wxRPZX7yItSxvYBCRFE7yikuqFXq9792bcImQvrcH0CIalGsfjC8We3B2zCS4rxIVbNyc1kW3QaCoVjXSqSEnyjUr4ca+HtbwVXV3o40rodh7ACnqBMNq3MlyAkmAU="

addons:
coverity_scan:
project:
name: "1100101/Automatic"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "./autogen.sh; ./configure; make clean"
build_command: "make"
branch_pattern: coverity_scan

# Change this to your needs
script: ./autogen.sh && ./configure && make
91 changes: 91 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Minimal version of CMake
cmake_minimum_required (VERSION 3.0)

# Build type
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
endif ()

# Define project name
project (Automatic
LANGUAGES C
VERSION 0.9)

include(CTest)
include(GNUInstallDirs)
if(EXISTS ${CMAKE_SOURCE_DIR}/.git)
find_package(Git)
endif()

if(GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-list --max-count=1 --abbrev-commit HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE)
configure_file(include/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)
endif()

# include custom Modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")

set(automatic_srcs
src/automatic.c
src/base64.c
src/config_parser.c
src/downloads.c
src/feed_item.c
src/file.c
src/filters.c
src/json.c
src/list.c
src/memwatch.c
src/output.c
src/prowl.c
src/pushover.c
src/regex.c
src/rss_feed.c
src/state.c
src/torrent.c
src/transmission.c
src/urlcode.c
src/utils.c
src/web.c
src/xml_parser.c)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic")

option(AUTOMATIC_BUILD_TESTS "Build the test programs" OFF)

find_package(CURL 7.15.0 REQUIRED)
find_package(LibXml2 2.6.31 REQUIRED)
find_package(PCRE 7.4 REQUIRED)

add_executable(automatic ${automatic_srcs})
target_include_directories(automatic PRIVATE "${CMAKE_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries(automatic PRIVATE CURL::libcurl LibXml2::LibXml2 PCRE::PCRE)

# installation
include(systemdservice)

install(TARGETS automatic DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES src/automatic.conf-sample DESTINATION ${CMAKE_INSTALL_SYSCONFDIR})

# Install service if we have systemd
if (SYSTEMD_FOUND)
if(NOT EXISTS "${SYSTEMD_SERVICES_INSTALL_DIR}/automatic.service")
configure_file(src/automatic.service.in ${CMAKE_CURRENT_BINARY_DIR}/automatic.service @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/automatic.service
DESTINATION ${SYSTEMD_SERVICES_INSTALL_DIR}
COMPONENT data
)
else()
message(STATUS "Note: Not installing automatic.service, file already exists")
endif()
endif (SYSTEMD_FOUND)

if(AUTOMATIC_BUILD_TESTS)
enable_testing()
add_subdirectory(src/tests)
endif()
31 changes: 28 additions & 3 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
2022-01-27 v0.9.0:
Fixed: The app fails to daemonize properly in some situations

2013-04-04 v0.8.3
Fixed: Don't expect HTTP headers to be of the correct case (Content-Disposition vs. Content-disposition)
Fixes issue with torrent filenames.

2012-01-17 v0.8.2
Fixed: Segfault because of some really long magnet URIs
Fixed: Prevent crash when an invalid RSS feed is used

2012-11-12 v0.8.1
Fixed: The previous state wasn't always properly restored after a restart
Fixed: If the config file contains 'folder' suboptions with escaped whitespace ("My\ Download\ Folder")
the escaping backlash is now filtered out.
Fixes issue where Transmission doesn't properly recognize a JSON packet sent by Automatic.

2012-06-14 v0.8.0
Added: URL Rewrite for torrent download URLs
Added: Reload configuration when SIGHUP is received
Added: Configuration text can be split over multiple lines now.
Use '\' or '+' at the end of a line to signal a linebreak.
Fixed: Configure curl to accept encoded data. (HTTP header "Accept-Encoding")

2012-03-14 v0.7.3
Added: Support Magnet URIs in torrent feeds

2012-02-10 v0.7.2
Fixed: Downloading a torrent from a feed caused a crash in some rare situations.

2012-01-09 v0.7.1
Fixed: Problems with assigning a feed ID.

2011-12-08 v.0.7.0
Added: Assign each feed an ID, and bind filters to a certain feed using the ID.
Changed: Store RSS GUID in history file instead of item URL.
Expand All @@ -26,7 +51,7 @@
2010-10-17 v0.6.4
Added: New commandline option "--append-log|-a" to not overwrite the log from a previous session
Fixed: Wrong regular expression for "Content-Disposition" still included a stray double-quote sometimes

2010-05-11 v0.6.2
Fixed: The config parser choked on multiple newlines at the end of a config file

Expand Down
9 changes: 7 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ Installation instructions
1. Dependencies
----------------

Automatic makes use of the libcurl and libxml2 libraries, so make sure those are installed.
Automatic makes use of the libcurl, libxml2 and libpcre libraries, so make sure those are installed.
You'll also need automake to run autogen.sh - on Debian-derived distros, `apt-get install automake`.

2. Configuration
----------------

First configure the tool by typing
First autogenerate the configuration files by typing

./autogen.sh

then configure the tool by typing

./configure

Expand Down
3 changes: 1 addition & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ Automatic is configured via a configuration file (by default placed at /etc/auto

The file contains further instructions on how to configure the tool.

If you have questions, suggestions or you think you found a bug,
you can contact me at 1100101+automatic<at>gmail<dot>com or at http://forum.transmissionbt.com
If you have questions, suggestions or you think you found a bug, you can contact me at 1100101+automatic<at>gmail<dot>com.
7 changes: 7 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

aclocal
autoconf
automake --add-missing --copy --ignore-deps


97 changes: 97 additions & 0 deletions cmake/FindPCRE.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#.rst:
# FindPCRE
# --------
# Finds the PCRECPP library
#
# This will define the following variables::
#
# PCRE_FOUND - system has libpcrecpp
# PCRE_INCLUDE_DIRS - the libpcrecpp include directory
# PCRE_LIBRARIES - the libpcrecpp libraries
# PCRE_DEFINITIONS - the libpcrecpp definitions
#
# and the following imported targets::
#
# PCRE::PCRECPP - The PCRECPP library
# PCRE::PCRE - The PCRE library

if(NOT PCRE::PCRE)
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_PCRE libpcrecpp QUIET)
endif()

find_path(PCRE_INCLUDE_DIR pcrecpp.h
PATHS ${PC_PCRE_INCLUDEDIR})
find_library(PCRECPP_LIBRARY_RELEASE NAMES pcrecpp
PATHS ${PC_PCRE_LIBDIR})
find_library(PCRE_LIBRARY_RELEASE NAMES pcre
PATHS ${PC_PCRE_LIBDIR})
find_library(PCRECPP_LIBRARY_DEBUG NAMES pcrecppd
PATHS ${PC_PCRE_LIBDIR})
find_library(PCRE_LIBRARY_DEBUG NAMES pcred
PATHS ${PC_PCRE_LIBDIR})
set(PCRE_VERSION ${PC_PCRE_VERSION})

include(SelectLibraryConfigurations)
select_library_configurations(PCRECPP)
select_library_configurations(PCRE)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PCRE
REQUIRED_VARS PCRECPP_LIBRARY PCRE_LIBRARY PCRE_INCLUDE_DIR
VERSION_VAR PCRE_VERSION)

if(PCRE_FOUND)
set(PCRE_LIBRARIES ${PCRECPP_LIBRARY} ${PCRE_LIBRARY})
set(PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR})
if(WIN32)
set(PCRE_DEFINITIONS -DPCRE_STATIC=1)
endif()

if(NOT TARGET PCRE::PCRE)
add_library(PCRE::PCRE UNKNOWN IMPORTED)
if(PCRE_LIBRARY_RELEASE)
set_target_properties(PCRE::PCRE PROPERTIES
IMPORTED_CONFIGURATIONS RELEASE
IMPORTED_LOCATION "${PCRE_LIBRARY_RELEASE}")
endif()
if(PCRE_LIBRARY_DEBUG)
set_target_properties(PCRE::PCRE PROPERTIES
IMPORTED_CONFIGURATIONS DEBUG
IMPORTED_LOCATION "${PCRE_LIBRARY_DEBUG}")
endif()
set_target_properties(PCRE::PCRE PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${PCRE_INCLUDE_DIR}")
if(WIN32)
set_target_properties(PCRE::PCRE PROPERTIES
INTERFACE_COMPILE_DEFINITIONS PCRE_STATIC=1)
endif()

endif()
if(NOT TARGET PCRE::PCRECPP)
add_library(PCRE::PCRECPP UNKNOWN IMPORTED)
if(PCRE_LIBRARY_RELEASE)
set_target_properties(PCRE::PCRECPP PROPERTIES
IMPORTED_CONFIGURATIONS RELEASE
IMPORTED_LOCATION "${PCRECPP_LIBRARY_RELEASE}")
endif()
if(PCRE_LIBRARY_DEBUG)
set_target_properties(PCRE::PCRECPP PROPERTIES
IMPORTED_CONFIGURATIONS DEBUG
IMPORTED_LOCATION "${PCRECPP_LIBRARY_DEBUG}")
endif()
set_target_properties(PCRE::PCRECPP PROPERTIES
INTERFACE_LINK_LIBRARIES PCRE::PCRE)
endif()
if(TARGET pcre)
add_dependencies(PCRE::PCRE pcre)
endif()
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP PCRE::PCRE)
else()
if(PCRE_FIND_REQUIRED)
message(FATAL_ERROR "PCRE not found. Possibly use -DENABLE_INTERNAL_PCRE=ON to build PCRE")
endif()
endif()

mark_as_advanced(PCRE_INCLUDE_DIR PCRECPP_LIBRARY PCRE_LIBRARY)
endif()
21 changes: 21 additions & 0 deletions cmake/systemdservice.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
########
# Find systemd service dir

pkg_check_modules(SYSTEMD "systemd")
if (SYSTEMD_FOUND AND "${SYSTEMD_SERVICES_INSTALL_DIR}" STREQUAL "")
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE}
--variable=systemdsystemunitdir systemd
OUTPUT_VARIABLE SYSTEMD_SERVICES_INSTALL_DIR)
string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_SERVICES_INSTALL_DIR
"${SYSTEMD_SERVICES_INSTALL_DIR}")
elseif (NOT SYSTEMD_FOUND AND SYSTEMD_SERVICES_INSTALL_DIR)
message (FATAL_ERROR "Variable SYSTEMD_SERVICES_INSTALL_DIR is\
defined, but we can't find systemd using pkg-config")
endif()

if (SYSTEMD_FOUND)
set(WITH_SYSTEMD "ON")
message(STATUS "systemd services install dir: ${SYSTEMD_SERVICES_INSTALL_DIR}")
else()
set(WITH_SYSTEMD "OFF")
endif (SYSTEMD_FOUND)
Loading