LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-09-2010, 02:45 AM   #1
AlexFr
LQ Newbie
 
Registered: May 2010
Posts: 24

Rep: Reputation: 0
data directory in automake


I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.
How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.
 
Old 05-09-2010, 03:10 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,147

Rep: Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308
install -m
for setting perms?
 
Old 05-09-2010, 03:27 AM   #3
AlexFr
LQ Newbie
 
Registered: May 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
install -m
for setting perms?
Yes, files are istalled by this command:

Code:
/usr/bin/install -c -m 644 file1 file2 '/usr/local/share/package-name'
The problem is that I cannot modify installation script directly. I need to change Makefile.am or configure.ac and generate installation script by autotools.
 
Old 05-09-2010, 06:33 AM   #4
AlexFr
LQ Newbie
 
Registered: May 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Solved by writing install-data-hook rule.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automake data dirs - what should go in Makefile.am? MadCactus Programming 4 02-20-2016 04:11 AM
Automake coping files to build directory paulmeacham Programming 0 08-27-2009 08:54 AM
Making an automake project with directory hierarchy in KDevelop g4j31a5 Programming 1 12-11-2006 09:53 PM
The postgresql data directory content in the pgsql directory is lost (empty data dir) kisembo Linux - Software 1 02-13-2006 01:11 PM
install-data in automake MadCactus Programming 0 12-20-2004 05:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration