ZM_TMPDIR directive doesn't appear to work
When compiling ZM 1.26.5, because of an issue with systemd using private /tmp directories, I wanted to get ZM to use a different directory for temporary files. However when a version recompiled using -D ZM_TMPDIR=/var/run/zmtmp directive appeared to create the specified directory but continued to use /tmp for temporary space.
Set you parameters like this:
-DZM_TMPDIR=/var/run/zmtmp
no space
You didn't state your distro, but I'm going to guess Fedora because I don't know any other distro that is using systemd yet.
Some additional information to help you:
- Prebuilt Fedora rpms & srpms are here: http://www.zoneminder.com/forums/viewtopic.php?f=9&t=21400
- Fedora packaging guidelines call for tmpdir to be here: /var/lib/zoneminder/temp However, when using cmake, you can easily create a Fedora compliant build by passing "-DF19", and cmake will set tmpdir and several other flags to be Fedora compliant. See this: https://github.com/ZoneMinder/ZoneMinder/blob/master/CMakeLists.txt#L479
- Look at the Fedora spec file for additional insight on how to build Fedora with cmake: https://github.com/ZoneMinder/ZoneMinder/blob/master/distros/fedora/zoneminder.cmake.f19.spec
Lastly, if you are running F20, then please provide us feedback if anything needs to be changed. If you are really up to the challange, create an "F20" ZM_TARGET_DISTRO and submit a pull request.
And if you aren't using Fedora, then let us know what other distro is using systemd.
UPDATE: You answered my distro question in your other post. OpenSuse 13.1
What I would do is look at the Fedora references I showed you, figure out what works for OpenSuse and what might need to be changed. Then create an "OS13" target distro, and submit a pull request. This will make building zoneminder on OpenSuse easier for everyone.
Sorry for misleading you but I actually didn't have a space in the option at compile time.
I will look into creating an OS13 as requested,
@PX03AFK Just following up with you. Did the Fedora examples help?
If you are referring to the parameter then the mistake I made was when writing it in the problem report. I didn't use a space when I compiled and yet ZM still used /tmp.
If it's about OpenSuse in general, I've had communications with Kyle Johnson about producing a document for OpenSuse and the Fedora example is a good starting point.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 01 February 2014 19:53 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
@PX03AFK https://github.com/PX03AFK
Just following up with you. Did the Fedora examples help?
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-33881628 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNjgxNzE3OSwiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--bd47 9b3466a94179dc42e33acfceb66d5e916536.gif>
Yes, if you still can't override a cmake variable, please post your entire command line, including anything executed just prior to calling cmake. I can compare it to what is known to work and then perhaps we can figure it out. Also, please verify if you can override any other cmake variables or if the issue is just with that variable. Hmmm.... your version of cmake might be helpful too.
Hi Andrew,
I think I'm beginning to see a little light about this problem. When I change the compile directive zmpkg.pl has the directory which I specified however on looking further I discovered that there are places where ZM_PATH_SOCKS is read out of the database and that hasn't changed. Not sure if I would have expected making a modification to a compile directive would have implicitly changed anything in the database.
The database appears to have 4 fields which have /tmp/zm as the Value - ZM_PATH_SOCKS, ZM_PATH_SWAP, ZM_UPLOAD_FTP_LOC_DIR and ZM_UPLOAD_LOC_DIR.
Interestingly I have two systems with zm installed and on one the DefaultValue for these is also /tmp/zm whereas on the other they are /var/run/zmtmp, which is my chosen directory. I can't work out why one db has been changed and the other hasn't but obviously the problem I'm having is that the Value has not been changed.
Obviously I can easily modify the database entries and sort out my problem but should something else have made this change?
One other question, zm already uses /var/run/zm for zm.pid. As far as I can tell this directory isn't created by zm but it doesn't seem to cause any problem as the only thing which is stored is the current pid. When you start zm it doesn't complain about not being able to create the pid file in this directory so I wonder if it really needed any more. It's easy to get the system to re-create the directory at start up by putting an entry in /etc/tmpfiles.d. It appears that this value is a fixed value set in scripts/zm. My question is whether there is any reason why I can't use /var/run/zm as the alternative to /tmp/zm rather than having yet another directory.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 01 February 2014 22:50 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
Yes, if you still can't override a cmake variable, please post your entire command line, including anything executed just prior to calling cmake. I can compare it to what is known to work and then perhaps we can figure it out. Also, please verify if you can override any other cmake variables or if the issue is just with that variable. Hmmm.... your version of cmake might be helpful too.
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-33885866 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNjgyNzc5MiwiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--938d 82e8f4be117326532323f1e6d7d803b391c8.gif>
David, Check out this file here: https://github.com/ZoneMinder/ZoneMinder/blob/master/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in
ConfigData.pm.in contains all the defaults that get put into the Config table during installation of a new zoneminder system. In that file, you can see that all the ZM_ variables you mention are directly mapped to this macro: @ZM_TMPDIR@
That macro gets set when you call cmake and can be overridden by setting -DZM_TMPDIR="/path/to/your/folder"
Since you've stated that you are indeed setting this flag but are not getting the expected results, I can't really say for sure what is going on until you post exactly how you built it from the command line. We need to see exactly what you typed if we are going to make progress on this. Additionally, I'd like to see your build output as well. Can you paste your output into pastebin or something similar and then link to it?
The short answer to your second question is, "yes, you can put the zm.pid file anywhere you want", but where you put that file is specific to your distro. For example, centos uses /var/run/zoneminder while fedora uses just /run/zoneminder.
Here goes my attempt to give you the long answer. Because the run folder is distro specific, that is done for you in the rpm spec file, which gets us into what I mentioned previously about populating the /distros/opensuse subfolder with information specific to your distro. The more I look into this, the more I see that this closely models what we've done for Fedora. I need to refer you line 124 to the Fedora spec file: https://github.com/ZoneMinder/ZoneMinder/blob/master/distros/fedora/zoneminder.cmake.f19.spec#L124
You can see that it places a config file under the tmpfiles.d folder, which is exactly what you are trying to do. The contents of that config file looks like this: https://github.com/ZoneMinder/ZoneMinder/blob/master/distros/fedora/zoneminder.tmpfiles
In summary, you are on the right track. You are beginning to see the various things that don't get set for you when compiling from source. The end-all-be all solution to properly configure all these little widgets, specific to your distro, is to first create a new OS13 target distro in the file CMakeLists.txt and then configure an opensuse rpm spec file in distros/opensuse (and include all the other supporting files to go with it). You would then build zoneminder like so "rpmbuild -ba zoneminder.spec". The end result would be an rpm file, which would place everything into exactly the place it should go. I'm willing to show you how to do all this if you are willing to go through the learning curve.
Andrew,
More than happy to go through the learning curve if it will help the project overall and you are happy to keep giving me guidance, but no promises on how quickly I might get it done. In the meantime, here is the script I use to compile from source:
for f in CMakeCache.txt CMakeFiles Makefile cmake_install.cmake config.h ffmpeg
install_manifest.txt srv x264 zm.conf zmconfgen.pl zmlinkcontent.sh
do
if [ -f $f ]
then
rm $f
fi
done
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/zoneminder \
-DZM_WEBDIR=/srv/www/htdocs \
-DZM_CGIDIR=/srv/www/cgi-bin \
-DZM_WEB_USER=wwwrun \
-DZM_WEB_GROUP=www \
-DZM_DB_NAME=zm \
-DZM_DB_USER=zmuser \
-DZM_DB_PASS=zmpass \
-DENABLE_MMAP=yes \
-DZM_TMPDIR=/var/run/zmtmp \
.
I'm not sure, from what you have said, whether changing the value for ZM_TMPDIR will cause an update to an existing database entry. If it should then I can't currently see where that happens. If it doesn't update the database then obviously this is one parameter which needs to be established from the very start. I can see that the configuration information has updated correctly so anything which is within a script has made the change.
I'm quite happy for you to see my build output but I need your guidance as to exactly what you would like to see and how I can get it to you - unfortunately I don't know anything about pastebin and how to use it.
Whilst I can see that there are several distro specific issues which would be worth handling, this is the first time I've had problems compiling ZM on OpenSuse and I've had it running for about three years on a number of releases, BUT they were probably all pre systemd.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 02 February 2014 16:49 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
David, Check out this file here: https://github.com/ZoneMinder/ZoneMinder/blob/master/scripts/ZoneMinder/lib/ ZoneMinder/ConfigData.pm.in
ConfigData.pm.in contains all the defaults that get put into the Config table during installation of a new zoneminder system. In that file, you can see that all the ZM_ variables you mention are directly mapped to this macro: @ZM_TMPDIR@
That macro gets set when you call cmake and can be overridden by setting -DZM_TMPDIR="/path/to/your/folder"
Since you've stated that you are indeed setting this flag but are not getting the expected results, I can't really say for sure what is going on until you post exactly how you built it from the command line. We need to see exactly what you typed if we are going to make progress on this. Additionally, I'd like to see your build output as well. Can you paste your output into pastebin or something similar and then link to it?
The short answer to your second question is, "yes, you can put the zm.pid file anywhere you want", but where you put that file is specific to your distro. For example, centos uses /var/run/zoneminder while fedora uses just /run/zoneminder.
Here goes my attempt to give you the long answer. Because the run folder is distro specific, that is done for you in the rpm spec file, which gets us into what I mentioned previously about populating the /distros/opensuse subfolder with information specific to your distro. The more I look into this, the more I see that this closely models what we've done for Fedora. I need to refer you line 124 to the Fedora spec file: https://github.com/ZoneMinder/ZoneMinder/blob/master/distros/fedora/zonemind er.cmake.f19.spec#L124
You can see that it places a config file under the tmpfiles.d folder, which is exactly what you are trying to do. The contents of that config file looks like this: https://github.com/ZoneMinder/ZoneMinder/blob/master/distros/fedora/zonemind er.tmpfiles
In summary, you are on the right track. You are beginning to see the various things that don't get set for you when compiling from source. The end-all-be all solution to properly configure all these little widgets, specific to your distro, is to first create a new OS13 target distro in the file CMakeLists.txt and then configure an opensuse rpm spec file in distros/opensuse (and include all the other supporting files to go with it). You would then build zoneminder like so "rpmbuild -ba zoneminder.spec". The end result would be an rpm file, which would place everything into exactly the place it should go. I'm willing to show you how to do all this if you are willing to go through the learning curve.
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-33905025 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNjg5MjU1MCwiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--edcf 579b74a27960280d2f37cd7e5af777699e58.gif>
I'll see if I can run that cmake command in one of my centos vm's tonight, but I've got a quick question for you.
CMAKE_INSTALL_PREFIX is just a prefix and should not contain the name of application. It should simply be the base folder name under which all programs get installed in your distro. That is "/usr" for redhat & debian based distros so shouldn't yours be just "/opt"?
With regard to the prefix, I could have left the default, I simply chose to use /opt because it is where some packages get installed. I also find it useful to have packages in their own directory, hence /opt/zoneminder. The potential downside to using somewhere other than the standard locations is that they won't be on the standard Path but given that they are not used very often having to specify the full path isn't too much of an overhead.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 03 February 2014 15:31 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
I'll see if I can run that cmake command in one of my centos vm's tonight, but I've got a quick question for you.
CMAKE_INSTALL_PREFIX is just a prefix and should not contain the name of application. It should simply be the base folder name under which all programs get installed in your distro. That is "/usr" for redhat & debian based distros so shouldn't yours be just "/opt"?
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-33965340 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNjk3NDIzMSwiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--16ce 55bbad64b7c916a9923713e4c3af7689e488.gif>
Hi David, I've just performed the following on one of my Fedora 19 vm's:
mkdir git
cd git
git clone https://github.com/ZoneMinder/ZoneMinder.git
cd ZoneMinder
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/zoneminder \
-DZM_WEBDIR=/srv/www/htdocs \
-DZM_CGIDIR=/srv/www/cgi-bin \
-DZM_WEB_USER=wwwrun \
-DZM_WEB_GROUP=www \
-DZM_DB_NAME=zm \
-DZM_DB_USER=zmuser \
-DZM_DB_PASS=zmpass \
-DENABLE_MMAP=yes \
-DZM_TMPDIR=/var/run/zmtmp \
.
Upon completion, I inspected the contents of the CMakeCache.txt file: http://ubuntuone.com/2KkwZKbKhzvWrkdFxvW55w
Observe line 381 shows that ZM_TMPDIR has been overridden with the value specified on the command line.
I then proceeded to execute make from the command line to build zoneminder. Upon completion, I inspected the database creation sql script, zm_create.sql: http://ubuntuone.com/5fkvoWHqEMhK7W0zPEQOem
This file is found in the "db" subfolder of your build directory. Observe that all the values mentioned previously, ZM_PATH_SOCKS, ZM_PATH_SWAP, ZM_UPLOAD_FTP_LOC_DIR and ZM_UPLOAD_LOC_DIR, all have the value of ZM_TMPDIR we specified.
Note that this is a sql script so the lines you are looking for start with something like this:
insert into Config set Id = 62, Name = 'ZM_PATH_SOCKS', Value = '/var/run/zmtmp', .........
So if I create a new database with this script, these values should all be correct.
What I'd ask you to do next is to duplicate the exact steps I have just performed and compare the two files I created on my system with the ones on yours. Note any differences.
Hi Andrew,
I would completely agree that when building a new system everything would work as expected. The problem I ran into was that I had a working system when I discovered the problem with /tmp and having made the change and recompiled the scripts changed OK but because the database was already set up and working, nothing would change the values within it and therefore the existing values were used. I had anticipated that making the change at compile time would not require a change to the database as well.
The problem that I therefore see is that we have some options which only directly apply when you are creating a new system. Once created and running when you modify the option and recompile you can get a conflict between the compiled system and information stored in the database. Surely, it would be better to have options like this either within the compile options or the database and not both or alternatively make sure that if such options were changed the database was modified within the make install process. As a minimum, it would be helpful to note which values are stored in the database and therefore if such options are changed at compile time a modification would be required to manually amend the database values.
Please remember that the reason I ran into this problem in the first place was because of changes to OpenSuse and the use of private /tmp space for Apache2 but that this occurred when I upgraded OpenSuse from a working system and therefore I already had ZM running completely OK before the upgrade. I accept that by using it on a distro which is not fully recognized by ZM I have to deal with problems myself but if we had included OpenSuse within the distros prior to OpenSuse changing to systemd the problem would have shown up for anyone performing the OpenSuse upgrade.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 04 February 2014 00:22 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
Hi David, I've just performed the following on one of my Fedora 19 vm's:
mkdir git
cd git
git clone https://github.com/ZoneMinder/ZoneMinder.git
cd ZoneMinder
cmake
-DCMAKE_INSTALL_PREFIX=/opt/zoneminder
-DZM_WEBDIR=/srv/www/htdocs
-DZM_CGIDIR=/srv/www/cgi-bin
-DZM_WEB_USER=wwwrun
-DZM_WEB_GROUP=www
-DZM_DB_NAME=zm
-DZM_DB_USER=zmuser
-DZM_DB_PASS=zmpass
-DENABLE_MMAP=yes
-DZM_TMPDIR=/var/run/zmtmp
.
Upon completion, I inspected the contents of the CMakeCache.txt file: http://ubuntuone.com/2KkwZKbKhzvWrkdFxvW55w
Observe line 381 shows that ZM_TMPDIR has been overridden with the value specified on the command line.
I then proceeded to execute make from the command line to build zoneminder. Upon completion, I inspected the database create sql script: http://ubuntuone.com/5fkvoWHqEMhK7W0zPEQOem
Observe that all the values mentioned previously, ZM_PATH_SOCKS, ZM_PATH_SWAP, ZM_UPLOAD_FTP_LOC_DIR and ZM_UPLOAD_LOC_DIR, all have the value of ZM_TMPDIr we specified. Note that this is a sql script so the lines you are looking for start with something like this:
insert into Config set Id = 62, Name = 'ZM_PATH_SOCKS', Value = '/var/run/zmtmp', .........
So if I create a new database with this script, these values should all be correct.
What I'd ask you to next is to duplicate the exact steps I have just performed and compare the two files I created on my system with the ones on yours. Note any differences.
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-34017623 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNzAwNjEwMiwiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--f7f0 094ed3347c0cd7dc894d593c94eaef6268ad.gif>
The real problem here is that no one has stepped up to develop on the distro that you have chosen to use.
We are all just volunteers here who choose to spend our time on the operating systems we are familiar with. OpenSuse isn't currently on that list and will not be on that list until someone steps up. Until that happens, you can expect issues because you are literally in undocumented territory. So document it already, and put it in the Wiki for others to benefit.
To say "if you had just done this...." is to have the cart before the horse. Someone has to first step up and participate by making pull requests.
Andrew,
I would have to slightly disagree with you on this. To me this isn't a distro issue but one of having the same settings in two different places. Unless I haven't been able to spot where the compilation system directly affects the database, anyone who chooses to change one of the four compilation variables on a working system will get the change into their compiled code but not have the same change in the database. So even if I step up and produce a version for OpenSuse I can't see how this would help if a user decided to recompile from source.
Having said that, I'm still more than happy to move forward and produce an OpenSuse version when I get the opportunity but there is a term you have used more than once which I don't understand - what is a 'pull request'? Also, can you suggest the most appropriate place to document in the Wiki and do I have direct access to be able to do this.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 04 February 2014 16:03 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
The real problem here is that no one has stepped up to develop on the distro that you have chosen to use.
We are all just volunteers here who choose to spend our time on the operating systems we are familiar with. OpenSuse isn't currently on that list and will not be on that list until someone steps up. Until that happens, you can expect issues because you are literally in undocumented territory. So document it already, and put it in the Wiki for others to benefit.
To say "if you had just done this...." is to have the cart before the horse. Someone has to first step up and participate by making pull requests.
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-34074494 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNzA2MjU1NywiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--9a4e eb50a378f451fdb1bf7f7b082492497cdd4a.gif>
The compilation process will never affect an existing database. This is by design.
Understand that no amount of code writing is going automate the process of migrating to a new operating system for every single end user. That by it's very nature is going to be an entirely manual process, which includes the final step of verifying the contents of the existing database.
Instead, this should be approached by documenting your specific case. Now would be a great time to document your upgrade procedure in the WiKi here: http://www.zoneminder.com/wiki/index.php/SuSE
Concerning the pull request, what I would ask you to eventually set up for opensuse concerns distro-specific items such as: systemd and init scripts, log rotation, tmpfiles.d, etc. Each distro has their own way of implementing certain things, and those items live under the distro subfolder.
For example, you pointed out that OpenSuse uses tmpfile.d to create temporary folders on the fly, and this is how we will set it up for you so you don't have to do it manually each time. However, I'm also pointing out that there are additional widgets that must be looked into as well.
To get started, I recommend you read how to fork a repo and then generate a pull request: https://help.github.com/articles/fork-a-repo https://help.github.com/articles/using-pull-requests
The first pull request will be the easiest.
I just had an additional thought concerning the existing database issue. Now that we know, in hindsight, what fields need to be upgraded on your system, you could rather quickly create a sql script containing the dB records you want to update and execute that from the command line. Naturally it doesn't help us during the initial run, but it would speed up any attempts to do the same thing over again.
Essentially what you do is look at the zm_create.sql file and find the "insert into" records for the ZM_XXXXX variables you are interested in. Change those lines from Insert queries to Update queries and then save them to a new sql file.
Hi Andrew,
First of all, is this a good e-mail address to use to communicate with you or should I be using something else.
Secondly, I am currently working on producing an OpenSuse install package, based on the current Fedora one, and I am wondering whether I should be trying to follow some general rules about where ZoneMinder components live and common places which maybe should be present and link to the specific for OpenSuse. Is there anything documented about specific locations which would be preferable to retain if possible.
David
Yes, that's an excellent question. I've been meaning to ping you as I wasn't sure if you had been making progress.
The ultimate guide to determine were stuff should go within the operating system is covered in the OpenSuse Packing Guidelines: http://en.opensuse.org/openSUSE:Packaging_guidelines
While it is the most thorough, it's also going to be the most time consuming. You should, however, be familiar with it at some point. It's going to help.
For our purposes though, you can cheat a little bit. Try and find a Source RPM for a previous version of zoneminder, built by someone from the opensuse team. I think these exist as I've seen references to them from time to time. Note that you will need to first configure an rpmbuild environment for opensuse. I think it should be similar to this: http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
Once you find and install a zoneminder srpm, open up the specfile and inside will be the answers you seek. Specfiles are written in a macro language which isn't too terrible to figure out, but I know..... this process kind of snowballs into more and things one has to learn (welcome to our world :-) ).
Lastly, for general communication, we are frequently on IRC channel #zoneminder on chat.freenode.net
Good luck!
Hi Andrew,
Having received your message I started looking a little more closely to see what, if anything, already existing for ZM and OpenSuse and I was somewhat surprised to find this http://www.zoneminder.com/wiki/index.php/Installing_using_ZoneMinder_RPMs_fo r_SuSE, which has links to existing rpms. There are also rpms on rpm.pbone.net.
Am I therefore simply duplicating work which other people are already doing? I'm not unhappy to carry on if I'm going to provide something useful but it does appear as though somebody has already beaten me to it.
I had also started using http://fedoraproject.org/wiki/How_to_create_an_RPM_package as a guide to build the package, seemed to make sense as I was basing it on the Fedora one, and that was what prompted my question. I don't seem to be able to locate an srpm.
David
From: Andrew Bauer [mailto:[email protected]] Sent: 07 February 2014 14:28 To: ZoneMinder/ZoneMinder Cc: David Wilcox Subject: Re: [ZoneMinder] ZM_TMPDIR directive doesn't appear to work (#306)
Yes, that's an excellent question. I've been meaning to ping you as I wasn't sure if you had been making progress.
The ultimate guide to determine were stuff should go within the operating system is covered in the OpenSuse Packing Guidelines: http://en.opensuse.org/openSUSE:Packaging_guidelines
While it is the most thorough, it's also going to be the most time consuming. You should, however, be familiar with it at some point. It's going to help.
For our purposes though, you can cheat a little bit. Try and find a Source RPM for a previous version of zoneminder, built by someone from the opensuse team. I think these exist as I've seen references to them from time to time. Note that you will need to first configure an rpmbuild environment for opensuse. I think it should be similar to this: http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
Once you find and install a zoneminder srpm, open up the specfile and inside will be the answers you seek. Specfiles are written in a macro language which isn't too terrible to figure out, but I know..... this process kind of snowballs into more and things one has to learn (welcome to our world :-) ).
Lastly, for general communication, we are frequently on IRC channel #zoneminder on chat.freenode.net
Reply to this email directly or view https://github.com/ZoneMinder/ZoneMinder/issues/306#issuecomment-34440434 it on GitHub. <https://github.com/notifications/beacon/6486570__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcwNzMxNjA3MiwiZGF0YSI6eyJpZCI6MjQxNzUxNTB9fQ==--fe7b c1d5efb0dd1e6975f204c837da61293cf3f1.gif>