Need a little bit of guidance

I need a little bit of guidance. 
My plan is to make a PKGBUILD, but I've ran into a few snags.  I'm trying to make PKGBUILD for ToME-223-src (Troubles of Middle Earth).  But first I want to compile and install it locally so I'll have a good idea of how to make the PKBUILD right and to test it for awhile.  So the PKGBUILD is something later on to worry about.
I have a bit of delimma.  For some reason, the developer(s) of this game have the binary for it to use suid (I'm not sure their reasoning since I'm not a very experience programmer).  Fortunately, in the makefile, it uses the variable OWNER=games by default.  This is what is responsible for setting the ownership of all of the files when "make install" is ran appearantly.  This presents a few challenges.
When you get to the point of where you make install it, it's install rule wants to recursively run chown on all the files being installed like a nice and tidy makefile does.  So if you're not logged in as root when  you do the "make install" it gets choked up a bit and doesn't copy/install all the files.  So a regular user account doesn't generally have needed privileges to run chown and it has to be assumed when someone is going to install my tentative package they won't either.
Another delimma is that since it wants to utilize suid, this creates the necessity of a regular user account to be the owner of these files (I don't like the idea of this game running with root privileges personally).  We don't want root ownership on whatever files have their suid bit set I would think.  So this will require the making of the appropriate user.  Again, this usually requires high enough privileges by the person building.
This of course could be solved by using useradd in the build function, and the having builder being logged on as root when they makepgk, but I really don't like that nor feel it's a very kosher approach.
Any idea of how I can come up with an elegant solution to this?  How is this sort of situation normally handled with ABS?

If a package needs chown on install, or a new user created, this is typically done in the .install script. When pacman installs the pakcage, the .install script is run as root.
Based purely on your description, my suggestion would be to skip the make install stage, and use install commands in the PKGBUILD to put the files in the right places. In the .install script, create the required user and associated permissions.
Here's a typical example.

Similar Messages

  • HT4208 I just need a little bit of help. I visited the american ap store looking for the new scrabble game which is not available in the australian ap store. Can't get it anyway as I don't have an account there. I am trying to get back to the australian a

    I just need a little bit of help. I visited the american ap store, using my i phone, to check out something. I dont have an account with them so I couldn't get what I wanted anyway.Now, I need to get back to the australian store and I don't know how to do that. Please help!

    Go to app store- scroll down to bottom- click on apple id- change country

  • Need a little bit of help with substring...

    Im very new at java programming, and need a bit of help with a problem:
    Here is what I have:
    System.out.print("Enter a string : ");
    Scanner scan = new Scanner (System.in);
    stringy = scan.nextLine();
    Now I want to split the string "stringy" like this: h:hi:hip:hipp:hippo
    I know this uses substring, but I can't figure out how to do it.
    Any help would be great, thanks!

    I know about the length method, what I dont knowis
    how to use the length and substring methodstogether
    to solve the problem i mentioned initially. There are three ingredients to perform this task:
    - String.length()
    - String.substring(int start, int end)
    - for-statement:
    http://java.sun.com/docs/books/tutorial/java/nutsandbo
    lts/for.html
    Pseudo code:IN <- input String from user
    LOOP FROM 0 -> IN.length()
    print IN.substring(?, ?)
    print ":"
    END LOOP
    Remember, Im very new. ;)Remember that by just handing you the solution, you
    will learn far less than finding things out by
    yourself.
    ; )Thanks a lot, i should be able to figure it out froom the pseudo code. :)

  • I need a little bit of help if possible that is

    so i got my ipod about 3 weeks ago or so and i was diconnecting it right the entire time but i left in to charge one night and my sister decided she need that port for her camera and pulled it out incorrectly at first the screen was frozen on do not disconnect but i got past that..now i have nothing on it when i go to put my music on it i get the message "The iPod "IPOD" cannot be updated. The required file cannot be found" is there anyway to fix that?????? Thanks

    I know about the length method, what I dont knowis
    how to use the length and substring methodstogether
    to solve the problem i mentioned initially. There are three ingredients to perform this task:
    - String.length()
    - String.substring(int start, int end)
    - for-statement:
    http://java.sun.com/docs/books/tutorial/java/nutsandbo
    lts/for.html
    Pseudo code:IN <- input String from user
    LOOP FROM 0 -> IN.length()
    print IN.substring(?, ?)
    print ":"
    END LOOP
    Remember, Im very new. ;)Remember that by just handing you the solution, you
    will learn far less than finding things out by
    yourself.
    ; )Thanks a lot, i should be able to figure it out froom the pseudo code. :)

  • Nokia 720 Problems - Need a little bit of help her...

    Hi,
    Few Problems with a 10 day nokia 720:-
    1. Earphone volume while in a call - I can't change the earphone volume while in a call. This is very frustating. Is this a problem with my nokia 720 or is this a general issue with all 720.
    2. Microphone doesn't work in certain directions, while in a sleeping pose or sometimes sitting. This has never happened to me in around 6-7 phones that I have used. Please tell me if this is a problem for my phone or device issue.
    3. When I switch off mobile data connection, my overall mobile connection is lost after some time. Also I am experiencing too frequent call drops, Also my network just goes out of the picture, it just doesn't detect network. Facing a lot of issues with this,
    4. Sometimes it zooms out and doesn't come back to its original position. I don't know what is the problem with this. I have to restart my phone to get back in normal position.
    5. My bookmyshow app doesn't work after the update [this can be ignored ]
    I expected more out of my nokia lumia but hard to say if the problems are with my phone only or for all nokia 720. Hoping for some help in this forum.
    Also please tell me if nokia will change my device if this is a problem with only my device and not every device. Please help.
    Thanks in advance

    the screen zoom problem and mic problem is there in many phones.
    hv not been able to sort mic /call drop issue, bt for zoom
    the phone zooms by double tap on any screen, this is a feature in ease of access. go to settings->ease of access->screen magnifier->off.
    Pushpender wrote:
    Hi,
    Few Problems with a 10 day nokia 720:-
    1. Earphone volume while in a call - I can't change the earphone volume while in a call. This is very frustating. Is this a problem with my nokia 720 or is this a general issue with all 720.
    2. Microphone doesn't work in certain directions, while in a sleeping pose or sometimes sitting. This has never happened to me in around 6-7 phones that I have used. Please tell me if this is a problem for my phone or device issue.
    3. When I switch off mobile data connection, my overall mobile connection is lost after some time. Also I am experiencing too frequent call drops, Also my network just goes out of the picture, it just doesn't detect network. Facing a lot of issues with this,
    4. Sometimes it zooms out and doesn't come back to its original position. I don't know what is the problem with this. I have to restart my phone to get back in normal position.
    5. My bookmyshow app doesn't work after the update [this can be ignored ]
    I expected more out of my nokia lumia but hard to say if the problems are with my phone only or for all nokia 720. Hoping for some help in this forum.
    Also please tell me if nokia will change my device if this is a problem with only my device and not every device. Please help.
    Thanks in advance

  • Need a little bit of help

    Hi, i'm trying to make my java files runable from other machines and using the jar utility to do it. I have 10 files that get added to my jar file, and they are as follows:
    Tester.class, Deck.class, Suit.class, SavitchIn.class, Player.class Card.class, Pips.class, CardSet.class, Hand.class, BlackJackHand.class
    I am using this command to jar them:
    D:\ITAS186T\Project1>jar cvf Tester.jar Tester.class Deck.class Suit.class SavitchIn.class Player.class Card.class Pips.class CardSet.class Hand.class BlackJackHand.class
    my public static void main is in Tester.class so I modified the manifest to include Main-Class: Tester.class
    now when i try to run it with this command: java -jar Tester.jar
    i get this error:
    Failed to load Main-Class manifest attribute from
    Tester.jar
    Any ideas?
    Thanks in advance,
    Terry

    Heh, now I get this.. will it ever end!! :P
    Thanks for all the help.
    D:\ITAS186T\Project1>java -jar Tester.jar
    Failed to load Main-Class manifest attribute from
    Tester.jar

  • The device need to be very close to the router to connect to the network otherwise it disconnects when it is far little bit

    The device need to be very close to the router to connect to the network otherwise it disconnects when it is far little bit.

    Try resetting network settings - 'Reset Network Settings'
    If your iPhone, iPad, or iPod touch won’t connect to a Wi-Fi network - Apple Support

  • I had spilled soda on Mac keyboard the other day. Dried it as best I could , took battery out Nd hard drive. I let it sit for a little bit and turned it back on and I get a beeping sound. What do I need to do?

    I had spilled soda on Mac keyboard the other day. Dried it as best I could , took battery out Nd hard drive. I let it sit for a little bit and turned it back on and I get a beeping sound. What do I need to do?

    That isn't good.  The RAM is probably damaged, hopefully not the RAM slots.  This article explains why.
    Never leave food nor drink near your computer again.

  • I have a 1st generation MacBook Pro and I recently downloaded OS X Maverick.  My iTunes will not open because it says i need a 64 bit version.  Already followed the promted instructions but no luck.  Any suggestions??

    I have a 1st generation MacBook Pro and I recently downloaded OS X Maverick.  My iTunes will not open because it says i need a 64 bit version.  Already followed the promted instructions but no luck.  Any suggestions??

    Oh, you do have the C2D! That's great!
    I'm no technical expert, I just like to help out whenever or wherever I can so... I don't know if this can help you, but let me tell you about how I got my Snow Leopard to run in 64 bit mode. When I got my (late 2008) iMac it was running in 32 bit mode under Tiger (2.4 GHz/Core 2 Duo). I eventually upgraded to Snow Leopard & it was running in 32 bit mode (by default) w/1 GB RAM.  
    Somewhere along the line, I happened to watch a YouTube Video that showed how to upgrade an iMac's RAM, so I ordered two - 2GB sticks of Crucial RAM and then - under the guidance of the 14 or 15 year-old young man who posted the video on YouTube; wearing a rather fashionable static-electricity-neutralizer-wrist-strap, I removed 1GB of RAM & plugged in the 4GBs of RAM. So - boom like that, it was like I bought a brand new machine.
    It was over a year later when I stumbled across a way to boot Snow Leopard into 64 bit mode. Turns out that if you boot while holding down the 6 & 4 key combo (the ones above the QWERTY keys), then the machine runs in 64 bit mode. Go figure. Now my Snow Leopard and just about all of my applications - with the ironic exception of iTunes - runs in 64 bit. iTunes seems fine though; if there's a performance bottleneck, I really can't tell.
    Well, that's about it..
    I hope that something I've mentioned can help you achieve your overall goal.
    Finally, it's hard to jump onto a train, a large cat, or a surfboard that's already moving. But don't be surprised when someone a fraction of your age shows you how to.
    Best Regards,
    mm~

  • Firefox links / icons are a little bit messed up?

    Hi All,
    This is what my screen looks like:
    >>moderator edit: Removed large image. Please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd<<
    Even though I clicked the Firefox Beta in the middle of the screen (I'm using firefox-beta-bin from AUR) icon, the Firefox icon on the left was Firefox Beta - Safe Mode (as if I clicked the Firefox Beta - Safe Mode).  Does anybody know how to fix that?
    This is a little bit off topic: does anybody know the css classes that I need to modify to make the icons in the middle of my screen smaller, closer and their labels bigger? I wish there were "firebug" for gnome shell.
    Thanks.
    Last edited by fsckd (2014-04-29 13:22:59)

    Yes, I was getting those same errors when I posted yesterday.
    And the thing is, when I first saw that happening, I thought that it would, within a couple of minutes, and become a full Discussions shut down. But that never occured, so it wasn't too bad.
    My technique was to do this kind of thing was:
    - I click "Reply" to a post, and begin typing. When I have completed my post, I click on the "Post message" button.
    - I am confronted with a "500 Timer already cancelled" message.
    - I ended up figuring out that, no fear, just refresh your page. (your post won't be cleared, since you are at the "post!reply/messageview" page).
    - I see my post, and go to the category where I post in, and get a "An error has occured. We apologize..." Same goes for this error - I simply refresh my browser, and the iPod category (which is where I mainly post in) begins to load up properly.
    So, I was able to manage like this by constantly refreshing my browsers. Not really nice to have, but still, I liked it much better that the Discussions were actually sustaining by showing errors, but actually not coming to a full crash.
    -Kylene

  • How to rewind a little bit in voice memos

    i interview people with ipod using the voice memo function.  then i play back and transcribe bit by bit. sometimes i mishear a sentence and need to rewind like one sentence, but it seems i can only rewind to the start.  is it possible to go back--or forward for than matter--a little bit at a time?  i'm using a 20 gig Ipod with color display (that's how i've been told by apple tech how to describe it)

    You may have better luck dumping those to computer and using an application that includes the ability to scrub.
    Try the Mac App Store for choices.

  • I bought a new mac and i migrate with time machine...but the backup was a little bit old and weren't save the latest modify i made in my website.. is it possible take the uploded site in iweb? sorry but i don't speak english very well.

    I bought a new mac and i migrate with time machine...but the backup was a little bit old and weren't save the latest modify i made in my website.. is it possible take the uploded site in iweb? sorry but i don't speak english very well

    But what can I cut and paste? the html code or image and text directly?
    depend on which template you used.
    if you use iweb photos page template then you need to search for my photos page solutions in this forum.
    @ot: cut and paste from the online version
    @rw: You can drag an image from the website to the Desktop
    have your try your methods in iweb photos page?

  • Need a little Help with my new xfi titanium

    +Need a little Help with my new xfi titanium< A few questions here.
    st question? Im using opt out port on the xfi ti. card and using digital li've on a windows 7 64 bit system,? I would like to know why when i use 5. or 7. and i check to make sure each speakear is working the rear speakers wont sound off but the sr and sl will in replace of the rear speakers. I did a test tone on my sony amp and the speaker are wired correctly becasue the rear speakers and the surrond? left and right sound off when they suppose too. Also when i try to click on? the sl and sr in the sound blaster control panel they dont work but if i click on the rear speakers in the control panel the sl and sr sound off. Do anyone know how i can fix this? So i would like to know why my sl and sr act like rears when they are not?
    2nd question? How do i control the volume from my keyboard or from windows period when using opt out i was able to do so with my on board? sound max audio using spidf? Now i can only control the audio using the sony receiver.
    Thank you for any help..

    /Re: Need a little Help with my new xfi titanium? ?
    ZDragon wrote:
    I'm unsure about the first question. Do you even have a 7. system and receiver? If you just have 5., you should be able to remap the audio in the THX console.
    I do have a sony 7. reciever str de-995 its an older one but its only for my cpu. At first i didnt even have THX installed because it didnt come with the driver package for some reason until i downloaded the daniel_k support drivers and installed it. But it doesnt help in anyway.
    I have checked every where regarding the first question and alot of people are having problems getting sound out of there rear channels and the sound being re-mapped to the surround right and the surround left as if there rear left and rear right.
    I read somewhere that the daniel_k support drivers would fix this but it didnt for me and many others.
    For the second question i assumed it would be becasue of the spidf pass through and that my onboard sound card was inferior to the xfi titaniums. But i wasnt sure and i was hopeing that someone would have a solution for that problem because i miss controlling the volume with my keyboard.

  • Droid pro messaging is not that quick and freezes a little bit

    I have the new droid pro and i love it. But when i go to forward messages it freezes a little bit. Does anyone out there have this problem? Is there any maintainance memory cleaning i need to do to it?

    If you are using the stock messaging application, try doing a soft reset on the device. 
    Soft Reset
    Press the Power key.
    Touch Power off.
    Touch OK.
    Press the Power key to power on the device.
    Then dial *228 send  and option 2 on the device.  
    To forward a message, press the message to access the individual message in the threaded view. Press and hold the message you wish to forward. The Message optionsare displayed which include Forward message.

  • I spilled a little bit of soda on my keyboard ( more like big drops) and my computer won't turn on but it will still charge.  After i spilled it it kept trying to turn on and off by itself until i finally just shut it down

    I spilled a little bit of soda on my keyboard ( more like big drops) and my computer won't turn on but it will still charge.  After i spilled it it kept trying to turn on and off by itself until i finally just shut it down.  Today i tried to turn it back on ( i spilled it last night) and now it won't turn on but when i plug it in the orange light comes on so it still charges.

    TBF: You may have been lucky enough not to cripple your MBP immediately with your spill, but a spill such as you describe will have left obvious traces if you ever need to take your machine in for a repair of any kind. And as soon as evidence of the spill is found, any chance of the necessary repairs being performed under warranty will be gone.
    Taking the machine in now to be cleaned and have the greasy parts replaced will be expensive, but doing so may save whatever remains of your warranty. For a price, Apple will restore the machine to like-new condition, and at the very least, you will then have a 90-day repair warranty on it. If you have significantly more time than that remaining on your original one-year warranty, and especially if you've bought the extended AppleCare Protection Plan, it would probably be worth taking the machine in to a Genius Bar for a look-over. Ask whether, if you have Apple clean and repair the machine now, your new-computer warranty and AppleCare plan will be reinstated afterward or whether all you'll have is the short repair warranty from now on. If the spill will negate your warranty and AppleCare even if you have Apple clean it, then the cleaning probably isn't worth paying for. But if paying for the cleaning will get your warranty and AppleCare reinstated, it may be worth doing.

Maybe you are looking for

  • How do i create a hyperlink in Captivate 4?

    How do I create a hyperlink in Captivate 4? I tried using a clickbox set to 'open url...' but that is not working when I publish the project. What am I doing wrong?

  • Migrate lightroom5 from PC to Mac

    Has bought an iMac and want to move Lightroom 5 from my PC, would like to know if there is a good link how to proceed.

  • Online Backup from Tape failed

    Hi All We are trying to restore the online backup from tape the backup device is Netbackup Utility Please find below the log BR0280I BRRESTORE time stamp: 2011-01-07 16.13.44 BR0229I Calling backup utility with function 'restore'... BR0278I Command o

  • Detailed navigation wont remove completely

    Hi, I've been through all the threads  on SDN and as a result have removed all but the content area from my default framework page and set the 'set to invisible in navigation parameters' to yes for all the iviews in the role. However I'm facing two i

  • Where can I find geometrixx components?

    Hello all, I'm following the tutorial "How to Create a Fully Featured Internet Website" and I'm having trouble with "Creating the Logo Design Dialog" I get an error "Failed to upload 'image_name.png': Upload URL string is empt". So I decided to look