Skip to content

Commit 3f5b5ef

Browse files
author
Ben Klopfenstein
committed
fix incorrect systemd script installation, add docs
1 parent e56a94a commit 3f5b5ef

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ target_link_libraries(libcec-daemon ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES}
2222
install(TARGETS libcec-daemon DESTINATION bin)
2323
install(FILES LICENCE README.md DESTINATION share/libcec-daemon)
2424
install(FILES etc/libcec-daemon.rules DESTINATION /lib/udev/rules.d)
25-
install(FILES etc/libcec-daemon.service DESTINATION /lib/systemd/system/libcec-daemon.service)
25+
install(FILES etc/libcec-daemon.service DESTINATION /lib/systemd/system)

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ git clone https://github.com/KingBonecrusher/libcec-daemon
3131
* Now we need some buildtools and libraries
3232

3333
```
34-
sudo apt-get install build-essential autoconf
34+
sudo apt-get install build-essential cmake
3535
sudo apt-get install libboost-program-options-dev libboost-thread-dev libboost-system-dev liblog4cplus-dev
3636
```
3737

@@ -49,7 +49,18 @@ sudo bash install-libcec.sh
4949

5050
```
5151
cd libcec-daemon
52-
./bootstrap && ./configure && make
52+
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
53+
make
54+
```
55+
56+
* Install libcec-daemon
57+
```
58+
sudo make install
59+
```
60+
61+
* libcec-daemon's systemd script and udev rules need the cec user and group:
62+
```
63+
sudo adduser --quiet --system --group --disabled-password --system --shell /bin/sh cec
5364
```
5465

5566
Usage

0 commit comments

Comments
 (0)