src/setup.py
changeset 2310 ce10607d5332
parent 2272 d81ea073d050
child 2335 33734ca16f74
equal deleted inserted replaced
2309:5aa9213d0285 2310:ce10607d5332
   176 
   176 
   177 man1_dir = 'usr/share/man/cat1'
   177 man1_dir = 'usr/share/man/cat1'
   178 man1m_dir = 'usr/share/man/cat1m'
   178 man1m_dir = 'usr/share/man/cat1m'
   179 man5_dir = 'usr/share/man/cat5'
   179 man5_dir = 'usr/share/man/cat5'
   180 resource_dir = 'usr/share/lib/pkg'
   180 resource_dir = 'usr/share/lib/pkg'
   181 smf_dir = 'lib/svc/manifest/application'
   181 smf_app_dir = 'lib/svc/manifest/application'
       
   182 smf_sys_dir = 'lib/svc/manifest/system'
   182 zones_dir = 'etc/zones'
   183 zones_dir = 'etc/zones'
   183 etcbrand_dir = 'etc/brand/ipkg'
   184 etcbrand_dir = 'etc/brand/ipkg'
   184 brand_dir = 'usr/lib/brand/ipkg'
   185 brand_dir = 'usr/lib/brand/ipkg'
   185 execattrd_dir = 'etc/security/exec_attr.d'
   186 execattrd_dir = 'etc/security/exec_attr.d'
   186 authattrd_dir = 'etc/security/auth_attr.d'
   187 authattrd_dir = 'etc/security/auth_attr.d'
       
   188 sysrepo_dir = 'etc/pkg/sysrepo'
       
   189 sysrepo_logs_dir = 'var/log/pkg/sysrepo'
       
   190 sysrepo_cache_dir = 'var/cache/pkg/sysrepo'
       
   191 
   187 
   192 
   188 # A list of source, destination tuples of modules which should be hardlinked
   193 # A list of source, destination tuples of modules which should be hardlinked
   189 # together if the os supports it and otherwise copied.
   194 # together if the os supports it and otherwise copied.
   190 hardlink_modules = []
   195 hardlink_modules = []
   191 
   196 
   208         lib_dir: [
   213         lib_dir: [
   209                 ['depot.py', 'pkg.depotd'],
   214                 ['depot.py', 'pkg.depotd'],
   210                 ['checkforupdates.py', 'pm-checkforupdates'],
   215                 ['checkforupdates.py', 'pm-checkforupdates'],
   211                 ['updatemanagernotifier.py', 'updatemanagernotifier'],
   216                 ['updatemanagernotifier.py', 'updatemanagernotifier'],
   212                 ['launch.py', 'pm-launch'],
   217                 ['launch.py', 'pm-launch'],
       
   218                 ['sysrepo.py', 'pkg.sysrepo'],
   213                 ],
   219                 ],
   214         svc_method_dir: [
   220         svc_method_dir: [
   215                 ['svc/svc-pkg-depot', 'svc-pkg-depot'],
   221                 ['svc/svc-pkg-depot', 'svc-pkg-depot'],
   216                 ['svc/svc-pkg-mdns', 'svc-pkg-mdns'],
   222                 ['svc/svc-pkg-mdns', 'svc-pkg-mdns'],
       
   223                 ['svc/svc-pkg-sysrepo', 'svc-pkg-sysrepo'],
   217                 ],
   224                 ],
   218         }
   225         }
   219 
   226 
   220 scripts_windows = {
   227 scripts_windows = {
   221         scripts_dir: [
   228         scripts_dir: [
   276         'man/pkgrecv.1',
   283         'man/pkgrecv.1',
   277         'man/pkgrepo.1',
   284         'man/pkgrepo.1',
   278         'man/pm-updatemanager.1',
   285         'man/pm-updatemanager.1',
   279         ]
   286         ]
   280 man1m_files = [
   287 man1m_files = [
   281         'man/pkg.depotd.1m'
   288         'man/pkg.depotd.1m',
       
   289         'man/pkg.sysrepo.1m'
   282         ]
   290         ]
   283 man5_files = [
   291 man5_files = [
   284         'man/pkg.5'
   292         'man/pkg.5'
   285         ]
   293         ]
   286 packages = [
   294 packages = [
   322         ]
   330         ]
   323 etcbrand_files = [
   331 etcbrand_files = [
   324         'brand/pkgrm.conf',
   332         'brand/pkgrm.conf',
   325         'brand/smf_disable.conf',
   333         'brand/smf_disable.conf',
   326         ]
   334         ]
   327 smf_files = [
   335 smf_app_files = [
   328         'svc/pkg-mdns.xml',
   336         'svc/pkg-mdns.xml',
   329         'svc/pkg-server.xml',
   337         'svc/pkg-server.xml',
   330         'svc/pkg-update.xml',
   338         'svc/pkg-update.xml',
   331         ]
   339         ]
       
   340 smf_sys_files = [
       
   341         'svc/pkg-sysrepo.xml',
       
   342         ]
   332 resource_files = [
   343 resource_files = [
   333         'util/opensolaris.org.sections',
   344         'util/opensolaris.org.sections',
   334         'util/pkglintrc',
   345         'util/pkglintrc',
       
   346         ]
       
   347 sysrepo_files = [
       
   348         'util/apache2/sysrepo/sysrepo_httpd.conf.mako',
       
   349         'util/apache2/sysrepo/sysrepo_publisher_response.mako',
       
   350         ]
       
   351 sysrepo_log_stubs = [
       
   352         'util/apache2/sysrepo/logs/access_log',
       
   353         'util/apache2/sysrepo/logs/error_log',
   335         ]
   354         ]
   336 execattrd_files = ['util/misc/exec_attr.d/SUNWipkg']
   355 execattrd_files = ['util/misc/exec_attr.d/SUNWipkg']
   337 authattrd_files = ['util/misc/auth_attr.d/SUNWipkg']
   356 authattrd_files = ['util/misc/auth_attr.d/SUNWipkg']
   338 pspawn_srcs = [
   357 pspawn_srcs = [
   339         'modules/pspawn.c'
   358         'modules/pspawn.c'
   905         # Solaris-specific extensions are added here
   924         # Solaris-specific extensions are added here
   906         data_files += [
   925         data_files += [
   907                 (zones_dir, zones_files),
   926                 (zones_dir, zones_files),
   908                 (brand_dir, brand_files),
   927                 (brand_dir, brand_files),
   909                 (etcbrand_dir, etcbrand_files),
   928                 (etcbrand_dir, etcbrand_files),
   910                 (smf_dir, smf_files),
   929                 (smf_app_dir, smf_app_files),
       
   930                 (smf_sys_dir, smf_sys_files),
   911                 (execattrd_dir, execattrd_files),
   931                 (execattrd_dir, execattrd_files),
   912                 (authattrd_dir, authattrd_files),
   932                 (authattrd_dir, authattrd_files),
       
   933                 (sysrepo_dir, sysrepo_files),
       
   934                 (sysrepo_logs_dir, sysrepo_log_stubs),
       
   935                 (sysrepo_cache_dir, {})
   913                 ]
   936                 ]
   914 
   937 
   915 if osname == 'sunos' or osname == "linux":
   938 if osname == 'sunos' or osname == "linux":
   916         # Unix platforms which the elf extension has been ported to
   939         # Unix platforms which the elf extension has been ported to
   917         # are specified here, so they are built automatically
   940         # are specified here, so they are built automatically