======================================================================================
MODIFIED SOLUTION: (needed because 'sdist' still cannot create empty directories after 8 years of bugs on this!!!)
This affected the 'var' empty directories and so what we do now is just check/create them in a %post section in SPEC file.
NEW SET OF FILES AND PATCHES FOLLOW.
======================================================================================
=================================================
add the following files to your tree (contents are posted above):
etc/openerp-server.conf
etc/init.d/openerp-server
etc/logrotate.d/openerp-server
=================================================
add the following lines to MANIFEST.in:
recursive-include etc *
=================================================
add the following line after the existing 'sed' line in rpminstall_sh.txt:
sed "s!^\(/etc/.*\)!%config(noreplace) \1!" -i INSTALLED_FILES
=================================================
add the following lines to setup.py in data_files() at about line 103: config_directory = opj('/etc') files.append((config_directory, [f for f in glob.glob('etc/*') if os.path.isfile(f)]))
config_directory = opj('/etc', 'logrotate.d') files.append((config_directory, [f for f in glob.glob('etc/logrotate.d/*') if os.path.isfile(f)]))
config_directory = opj('/etc', 'init.d') files.append((config_directory, [f for f in glob.glob('etc/init.d/*') if os.path.isfile(f)]))
=================================================
end
PS. retested and upgraded RPM and everything worked fine.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==
MODIFIED SOLUTION: (needed because 'sdist' still cannot create empty directories after 8 years of bugs on this!!!)
This affected the 'var' empty directories and so what we do now is just check/create them in a %post section in SPEC file.
NEW SET OF FILES AND PATCHES FOLLOW.
=======
======= ======= ======= ======= ======= ======= ======= server. conf d/openerp- server d/openerp- server
add the following files to your tree (contents are posted above):
etc/openerp-
etc/init.
etc/logrotate.
======= ======= ======= ======= ======= ======= =======
add the following lines to MANIFEST.in:
recursive-include etc *
======= ======= ======= ======= ======= ======= ======= etc/.*\ )!%config( noreplace) \1!" -i INSTALLED_FILES
add the following line after the existing 'sed' line in rpminstall_sh.txt:
sed "s!^\(/
%post
[ ! -e /var/log/openerp ] && mkdir -p /var/log/openerp
[ ! -e /var/spool/openerp ] && mkdir -p /var/spool/openerp
======= ======= ======= ======= ======= ======= =======
config_ directory = opj('/etc')
files. append( (config_ directory, [f for f in glob.glob('etc/*') if os.path. isfile( f)]))
add the following lines to setup.py in data_files() at about line 103:
======= ======= ======= ======= ======= ======= =======
end
PS. retested and upgraded RPM and everything worked fine.