[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: snetmanmon, a simple network manager and monitor



Hi,

>> That doesn't work. I already have had spend time before with trying to
>> use 3.0 and it didn't played well with the build system I'm using for
>> snetmanmon (cmake).
>
> it works, I can confirm you it works, on many projects I maintain.
> Maybe you just need to have a source orig tarball?
>
> examples of projects cmake based I maintain in quilt mode: ettercap, casablanca,
> websocketpp, hedegewars, cld and many others
>


tar czvf snetmanmon_1.3.orig.tar.gz snetmanmon
works beautifully
(of course you should start from releases not from git master, and remove the git dependency)

change debian/source/format to 3.0 (quilt)
change debian/changelog to 1.3-1
and live happy

>Sorry, but all your talk about non-sense is just non-sense for me. Both 
>of you don't seem do have understood why that cp you want to change to 
>install is there. It is not there to install a file in the target 
>system, it's there to build a directory structure to make dh_foo happy 
>in order to build a installable debian package.



the configuration file is useful for *everybody* who want to build the package, right?
even if they build from source without dh or whatever, and even if they build in a non-deb
build system.

In that case, you have to install it from cmake, and make users happy with the build and their make install.

This is what I did:
--- snetmanmon-1.3.orig/CMakeLists.txt
+++ snetmanmon-1.3/CMakeLists.txt
@@ -49,3 +49,4 @@ SET_TARGET_PROPERTIES(send_rpc_ra PROPER
LINK_FLAGS "$ENV{LDFLAGS}"
)
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/send_rpc_ra DESTINATION sbin)
+INSTALL(FILES snetmanmon.conf.full_example DESTINATION /etc RENAME snetmanmon.conf)


add the file in CMakeLists.txt
(dpkg-source --commit to extract a patch)

remove the dh_auto_install (the etc part)
add /etc in snetmanmon.install file.

I installled and I have /etc/snetmanmon.conf in the system, installed in the right way (TM).

cheers,

Gianfranco


Reply to: