improved build script for installation and updated README.md
parent
299b8dd989
commit
0351b58d32
|
@ -29,4 +29,14 @@ set_target_properties(info PROPERTIES
|
|||
PREFIX ""
|
||||
SUFFIX ".so"
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/modules"
|
||||
)
|
||||
)
|
||||
|
||||
# Installation rules
|
||||
install(TARGETS dpm DESTINATION bin)
|
||||
install(DIRECTORY DESTINATION /etc/dpm/conf.d)
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/data/modules.conf DESTINATION /etc/dpm/conf.d)
|
||||
|
||||
# Install all .so files from build/modules to the module path
|
||||
install(DIRECTORY ${CMAKE_BINARY_DIR}/modules/
|
||||
DESTINATION /usr/lib/dpm/modules
|
||||
FILES_MATCHING PATTERN "*.so")
|
39
README.md
39
README.md
|
@ -2,8 +2,45 @@
|
|||
|
||||
The core component of the Dark Horse Linux Package Manager
|
||||
|
||||
# What is DPM?
|
||||
## What is DPM?
|
||||
|
||||
https://dpm.darkhorselinux.org
|
||||
|
||||
## Build Dependencies
|
||||
|
||||
To build DPM from source, you'll need the following dependencies:
|
||||
|
||||
- GCC/G++ (version 10 or later, supporting C++20)
|
||||
- CMake (version 3.22 or later)
|
||||
- Make
|
||||
- libstdc++ (C++ standard library)
|
||||
- Linux headers
|
||||
- dlopen/dlsym support (provided by libdl)
|
||||
|
||||
## Building from Source
|
||||
|
||||
```
|
||||
mkdir ./build && cd ./build
|
||||
cmake ../
|
||||
make
|
||||
make install
|
||||
```
|
||||
|
||||
This will install:
|
||||
- The `dpm` binary to `/usr/bin/`
|
||||
- Module shared objects to `/usr/lib/dpm/modules/`
|
||||
- Configuration files to `/etc/dpm/conf.d/`
|
||||
|
||||
## Development
|
||||
|
||||
For development work, you can run DPM directly from the build directory:
|
||||
|
||||
```
|
||||
./dpm
|
||||
```
|
||||
|
||||
To load modules from the build directory, specify the module path:
|
||||
|
||||
```
|
||||
./dpm -m ./modules
|
||||
```
|
Loading…
Reference in New Issue