diff options
| author | liuchang <[email protected]> | 2023-03-22 12:47:22 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-03-22 12:47:22 +0000 |
| commit | 16528f0f938ccbaad67491f83bbaa54c773b5e19 (patch) | |
| tree | 0343ad90c0f85d499014b8ae11aefde74b3ac118 /cmake | |
| parent | 69e07b600b2d5f2b20910743dee4863d90155145 (diff) | |
add package aboutv0.0.0
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/Package.cmake | 4 | ||||
| -rw-r--r-- | cmake/PostInstall.in | 2 | ||||
| -rw-r--r-- | cmake/PostUninstall.in | 2 | ||||
| -rw-r--r-- | cmake/PreInstall.sh | 10 | ||||
| -rw-r--r-- | cmake/PreUninstall.in | 1 | ||||
| -rw-r--r-- | cmake/PreUninstall.sh | 8 |
6 files changed, 7 insertions, 20 deletions
diff --git a/cmake/Package.cmake b/cmake/Package.cmake index f32a9bc..c83b5d8 100644 --- a/cmake/Package.cmake +++ b/cmake/Package.cmake @@ -1,7 +1,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") - set(MY_RPM_NAME_PREFIX "${lib_name}-debug") + set(MY_RPM_NAME_PREFIX "shaping_engine-debug") else() - set(MY_RPM_NAME_PREFIX "${lib_name}") + set(MY_RPM_NAME_PREFIX "shaping_engine") endif() message(STATUS "Package: ${MY_RPM_NAME_PREFIX}") diff --git a/cmake/PostInstall.in b/cmake/PostInstall.in new file mode 100644 index 0000000..66bfb75 --- /dev/null +++ b/cmake/PostInstall.in @@ -0,0 +1,2 @@ +%systemd_post shaping_engine.service +/sbin/ldconfig
\ No newline at end of file diff --git a/cmake/PostUninstall.in b/cmake/PostUninstall.in new file mode 100644 index 0000000..da68b07 --- /dev/null +++ b/cmake/PostUninstall.in @@ -0,0 +1,2 @@ +%systemd_postun_with_restart shaping_engine.service +/sbin/ldconfig
\ No newline at end of file diff --git a/cmake/PreInstall.sh b/cmake/PreInstall.sh deleted file mode 100644 index 9ebc7d6..0000000 --- a/cmake/PreInstall.sh +++ /dev/null @@ -1,10 +0,0 @@ -DST=${RPM_INSTALL_PREFIX} - -mkdir -p ${DST}/plug/platform/ -touch ${DST}/plug/conflist.inf - - -if [[ -z `grep -rn 'shaping_master.inf' ${DST}/plug/conflist.inf` ]];then - sed -i '/\[platform\]/a\./plug/platform/shaping_master/shaping_master.inf' ${DST}/plug/conflist.inf -fi - diff --git a/cmake/PreUninstall.in b/cmake/PreUninstall.in new file mode 100644 index 0000000..f94eeda --- /dev/null +++ b/cmake/PreUninstall.in @@ -0,0 +1 @@ +%systemd_preun shaping_engine.service
\ No newline at end of file diff --git a/cmake/PreUninstall.sh b/cmake/PreUninstall.sh deleted file mode 100644 index 09da4b6..0000000 --- a/cmake/PreUninstall.sh +++ /dev/null @@ -1,8 +0,0 @@ -if [ $1 == 0 ]; then - DST=${RPM_INSTALL_PREFIX} - - touch ${DST}/plug/conflist.inf - - sed -i '/shaping_master.inf/d' ${DST}/plug/conflist.inf -fi - |
