How to make a simple package the easy way

i want to make a very simple package that can be installed with pacman.
i just want to copy a few files from the package to the /usr directory.
i read the wiki on this but it seems pretty "overkill" for the thing i want to do.
perhaps someone can give me a little hint how this can be done...

It's not overkill - that's about all I can say.
If it doesn't depend on anything and is hugely simple the it can be very short e.g.:
# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>
pkgname=ibmonitor
pkgver=1.3
pkgrel=1
pkgdesc="Interactive linux console application which shows bandwidth consumed and total data transferred on all interfaces."
url="http://ibmonitor.sourceforge.net/"
license=""
depends=('perl')
source=(http://dl.sourceforge.net/sourceforge/ibmonitor/$pkgname-$pkgver.tar.gz)
md5sums=('6f37ee0b00b62822823cdbabc9d7419e')
build() {
cd $startdir/src/$pkgname
install -D -m755 ibmonitor $startdir/pkg/usr/bin/ibmonitor
That is a "perfect" PKGBUILD, it doesn't get much simpler than that

Similar Messages

  • How to make a table copy - the fastest way????

    Hi,
    Well, I have the following task to do in the minimal possible time:
    Task: duplicate a table in my instance database. The source table name is SPC.
    The destination table name is SPC_REP. Both are partitioned.
    The trouble is my source table has 40 million rows, but I need to copy only 27 million related to a column which I will use a condition in where clause.
    Ok, so I have some questions:
    Question 1)
    What's the fastest way to provide this copy?
    Export/import, Insert into, sqlloader (this one I've never used)
    Question 2)
    I am planning to do this by export/import utility. But I don't want to waste time doing first the export process and only after all doing import process. I would like to do export and import simultaneously to save time as table has so many rows.
    Question 3)
    If I use export/import I will not be able to create the copy table on the same schema as it is my source table, correct? Correct me, if I'm wrong...
    Thank you all,
    And any hint will be appreciated.

    Export & import probably isn't the best solution here. It's not particularly fast, reuires that you create an additional copy of the data in your dump file, involves the cost of pulling all the data out of Oracle and puts it back in, etc.
    Transportable tablespaces would be an option, assuming your partitioned table isn't in the same tablespace as a bunch of other opjects.
    Personally, I would probably do a
    CREATE TABLE <<copy name>>
    AS
    SELECT *
      FROM <<original name>>
    WHERE 1=2
    INSERT /*+ APPEND */
      INTO <<copy name>>
      NOLOGGING
    SELECT *
      FROM <<original name>>
    WHERE <<something>>Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC
    Message was edited by:
    Justin Cave
    APPEND & NOLOGGING may be faster so I added that.
    Message was edited by:
    Justin Cave

  • Switching Computers: How Do I Transfer My Library The Easy Way?

    There are several parts to this question. So I'll try to be as clear as possible. Here's the story, I bought a new laptop over 1 year ago but I'm not able to transfer my library as it is exactly on the old one. So now I think it's high time I switched but I'd like to know if it is possible to:
    - Sync my iPod to the new computer and have playlist and all appear the same as the old computer (I tried this but it'll only sync back music I purchased from iTunes not my earlier stuff)? Or
    - Is there a way that I could copy the saved ".itl" file from my current iTunes music folder into the new one and copy my iTunes files physically to the new folder via an external drive and have my PLAYLISTS STAY the same? Or
    - Is there some other way that I can do this that I'm not thinking of?
    My Library is a mess and my PLAYLISTs keep everything organized for me. I'll probably cry if I have to physically recreate them in the new computer because it's going to take YEARS. Besides, it means that everytime I change computers I'll have to go through the same thing over again.
    I don't know if you can tell how much this means to me but I have a computer that's still brand new (and 4x more powerful than my current one) for over a year now just because I can't get my iLife in order.
    SP PLEASE ANY AND ALL HELPFUL INFORMATION WILL BE GREATLY APPRECIATED.
    Ps. I have iPod Classic 5 and latest iTunes 7.??
    *The__MAN (my apologies for being so wordy)

    Digging around a little more, I found this http://docs.info.apple.com/article.html?artnum=300173 and I think I'll answer my question.
    Thanks for looking,
    The__MAN out! (God I hope it works).

  • Example, How to run WebServices from C#, the easy way

    Hi,
    Anyone who visited the ByD PDI workshops may remember the WebService examples with SoapUI.
    Additionally, I want to explain another way of testing WebServices for ByD, which is IMHO way more easy
    and closer to reality.
    First of all, you need access to a ByD Studio and be able to create Solutions in there.
    Second, if you don't have a Visual Studio C# 2010 installed already, go to Microsoft's homepage and grab a free Express version there. Of course, you also have to install it
    For this example, I assume, that you want to do a 'Read' on a specific instance of your own BO.
    In this case, we call our BO MasterDataWanneBe .
    Quick guide for creating a WebService 'Read'
    1.  Create new WebService
    1.1.     Name: ReadAll
    1.1.a.  Namespace -> your soltion's namespace
    1.1.b.  Business object
    1.2.  Business Object View Name
    1.2.a.  Name = ReadAll
    1.2.b.  Select all Nodes + subnodes
    1.3.  Create u201AReadu2018 Service Operation
    1.3.a.  Name = Read
    1.3.b.  Select all nodes + subnodes
    2.  Activate WS
    3.  Create WS authentication file (.wsauth)
    4.  Add WS to authentication
    5.  Activate WSAuth (will create a view in background)
    6.  Assign created WS View + WS Workcenter
    7.  Authorize your user for this WorkCenter + View (in ByD, User Management)
    8.  Download WSDL, to for example: c:\ZAYQSY0Y_ReadAll.wsdl
    Now you have a valid WSDL, pointing your solution and we go next to the more interesting part.
    1. Start Visual Studio
    2. Create a new Solution, Type = C# Console Application; project name = BydTest
    3. Within the project explorer, right click on References, choose 'add service reference'
    4. Click 'advanced' (bottom left)
    5. Click 'Web reference' (bottom left)
    6. Enter the downloaded WSDL file as URL, example: c:\ZAYQSY0Y_ReadAll.wsdl
    7. It may happen, that there will be a security warning, just ignore it and the WSDL source should be displayed
    8. Type in name 'ReadAll' as reference name
    9. Press OK (the service 'ReadAll' will appear in the web reference list, within project explorer)
    10. Type in the following C# code
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using BydTest.ReadAll;
    using System.Net;
    namespace BydTest
        class Program
            static void Main(string[] args)
                new Program().run();
            private void run()
                BydTest.ReadAll.service service = new BydTest.ReadAll.service();
                service.Credentials = new SuperSecretCredentials();
                MasterDataWanneBeReadAllByIDQueryMessage_sync request = new MasterDataWanneBeReadAllByIDQueryMessage_sync();
                request.MasterDataWanneBe = new MasterDataWanneBeReadAllByIDQuery();
                request.MasterDataWanneBe.ID = "MYTESTID"; // assuming, one instance with this ID exists!
                MasterDataWanneBeReadAllByIDResponseMessage_sync response;
                response = service.Read(request);
                if (response.Log.Item != null) foreach (BydTest.ReadAll.LogItem log in response.Log.Item)
                    Console.WriteLine("Log: " + log.Note);
                Console.WriteLine("-------------------------------------------------------");
                if (response.MasterDataWanneBe != null)
                    // This BO has to elements: 'ID' and 'RunStartDate'
                    Console.WriteLine("My BO's ID:" + response.MasterDataWanneBe.ID);
                    Console.WriteLine("My BO's StartDate:" + response.MasterDataWanneBe.RunStartDate.ToString());
        class SuperSecretCredentials : ICredentials
            public NetworkCredential GetCredential(Uri uri, string authType)
                return new NetworkCredential("myuser", "mypassword");
    Example output, when selected ID was wrong:
    Log: No instance found for specified key
    Example output, when ID there is an existing BO instance with given ID:
    My BO's ID:E5F42697_MKIRST
    My BO's StartDate:18.05.2011 13:18:08
    To my experience, this way is rock solid and I've never had any problems.
    The two major pitfalls are:
    Problem: System.Net.WebException,  Message=Fehler bei der Anforderung mit HTTP-Status 401: Unauthorized
    Solution: Check, if you're using the correct user ID. Most likely you're using an user alias and not the real user ID (generated IDs are most often longer than the shorter aliases)
    Problem: SRT, RBAM authorization denied
    Solution: Check if WorkCenter and WebService (Dummy-)View are assigned to your user. Sometimes it helps, re-activate your complete solution within ByD Studio AND/OR right click on your solution (ByD Studio) and choose 'Update Authorizations and Access Rights'

    Really good! Thanks for sharing this!

  • How to make a ARCH package from local folder?

    hello ARCH lovers
    I can't seem to figure out how to make a installable
    package from a folder on my desktop?
    Coming from Slackware; the procedure would be simple enough just issuing
    "makepkg /root/pkgname.txz"
    Now; how would I do the same in ARCH?
    I know about PKGBUILD, etc but there is no source or any url's
    I just need to make it into a .pkg.tar.xz
    The package is my "kernel-live-kit" for both x86 and x86_64 versions of arch
    enabling one to remaster there existing install into a livecd/usb, etc
    The kernel itself is kernel26-zen from AUR
    http://aur.archlinux.org/packages.php?ID=30330
    however; mine is quite different and also includes all components to make the livecd using modified linux-live-6.3.0
    scripts and special stuff
    The pkg includes a premade kernel with modules and full kernel source
    The resulting live media is similar to my nFluxOS builds
    http://multidistro.com/
    As I will be releasing the new four horsemen of nFluxOS today; I also made 4 Kernel pkg's for the arch and slack versions
    Those will be for x86/x86_64 versions for both arch and slackware
    I did this in lieu of creating a quartet of x86_64 versions of nFluxOS; as that would up the number of versions to 8
    and I would then have to maintain 8 distro's instead of 4.
    I made a testing version of ARCH x86_64 live
    http://www.linuxquestions.org/questions … ost4017796
    so, I really need to make the ARCH x86 and x86_64 kernel kits into installable pkg's because there are many symlinks that would get corrupted if I just tarred it and then the end user untars it and copies it somewhere it would mess up the symlinks.
    as I said, in slackware I do makepkg and it creates a script named "doinst.sh" that makes all the symlinks, etc
    so, any help appreciated!
    thanks

    You can read a simple introduction to using the ABS here.
    By the way, it's not hard. Out of all the distributions I've used, Arch Linux is the only one I've figured out how to make packages for.

  • JDialog Problem: How to make a simple "About" dialog box?

    Hi, anyone can try me out the problem, how to make a simple "About" dialog box? I try to click on the MenuBar item, then request it display a JDialog, how? Following is my example code, what wrong code inside?
    ** Main.java**
    ============================
    publc class Main extends JFrame{
    public Main() {
              super();
              setJMenuBar();
              initialize();
    public void setJMenuBar()
         JMenuBar menubar = new JMenuBar();
            setJMenuBar(menubar);
            JMenu menu1 = new JMenu("File");      
            JMenuItem item = new JMenuItem("About");      
            item.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                  // About about = new About(this);
               // about.show();
            menu1.add(item);
         menubar.add(menu1);
    public static void main(String args[]){
         Main main = new Main();
    }** About.java**
    =============================
    import java.awt.*;
    import javax.swing.*;
    public class About extends JDialog{
         JPanel jp_top, jp_center, jp_bottom;
         public About(JFrame owner){
              super(owner);
              setDefaultCloseOperation( DISPOSE_ON_CLOSE );
              Image img = Toolkit.getDefaultToolkit().getImage(DateChooser.class.getResource("Duke.gif"));          
              setIconImage( img );
              setSize(500,800);
              Container contentPane = getContentPane();
             contentPane.setLayout(new BorderLayout());           
             contentPane.add(getTop(), BorderLayout.NORTH);
              contentPane.add(getCenter(), BorderLayout.CENTER);
              contentPane.add(getBottom(), BorderLayout.SOUTH);
              setResizable(false);
               pack();            
               setVisible(true);
         public JPanel getTop(){
              jp_top = new JPanel();
              return jp_top;
         public JPanel getCenter(){
              jp_center = new JPanel();
              return jp_center;
         public JPanel getBottom(){
              jp_bottom = new JPanel();
              jp_bottom.setLayout(new BoxLayout(jp_bottom, BoxLayout.X_AXIS));
              JButton jb = new JButton("OK");
              jp_bottom.add(jb);
              return jp_bottom;
    }

    Code looks reasonable except
    a) the code in the actionPerformed is commment out
    b) the owner of the dialog should be the frame
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

  • How to make a simple Quiz?

    Could anyone help me with some hints and maybe sample code (or tutorial :)) how to make a simple quiz, with multiple
    answers choices, and a score function.
    //D

    You could for example do it like this:
    import java.io.*;
    class Quiz
    public static void main (String [] args)
    BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
    System.out.println("SUPERQUIZ");
    System.out.println("How many legs does a horse have?");
    System.out.println();
    System.out.println("1");
    System.out.println("2");
    System.out.println("3");
    System.out.println("4");
    int answer = Integer.parseInt(in.readLine());
    if (answer == 4)
    System.out.println("The answer is correct");
    else
    System.out.println("The answer is incorrect");
    This is just a basic program, hope you understand it (hopefully it works).
    �sbj�rn

  • How To Make My New MacBook The Main Base Of My iPad, iPhone?

    I just got my new MacBook Pro, and i'm transefing all my applications for iPad and iPhone, music and my photos to my new computer using a Seagate Hard Drive. Anyway, i connected my iDevices to my computer and i do not know how to make this computer be the Mac that transfes everything instead of the old one. When i go to my iPad settings, under general, i go to Wi-Fi Sync and it says i can sync it when 'GABE' is available (that is my old computer). I want it to be my new one and be able to sync with no problems and without loosing my imformation from my iPad and iPhone apps. (For example, i don't wanna loose Pages documents, Garageband songs and FL Music Studio files)
    Please help, if you have any questions into what i need please ask, this is a hard question to explain! Thank you so much.

    That's fine as long as you never want to host any other content on www.domain.com
    Personally I would have setup a separate site such as webmail.domain.com that points to the Squirrelmail directory, and setup a redirect so that hits to the top page of www.domain.com get redirected to the webmail site.
    That way you preserve www.domain.com to still be free for other web content, yet still make it easy for users to get to webmail.

  • How to make text start at the top of a page in livecycle 9

    Hi, How can I get the text in a large text field to start at the top left of the field rather than at the center of the field? In addition, may one know how to make text wrap in the form as well?
    Thanks,
    David

    To set the Text alignment properties use "Paragraph" pallet you can make it visible by selecting Window>>Paragraph or Shift+F5
    And to allow text wrapping you need to select "Allow Multiple Lines" checkbox under "Object" pallet and "Field" tab. You can make Object pallet visible by selecting Window>>Object or Shift+F7.
    Good Luck,

  • I subscribed for itunes imatch - it works perfectly on my i-pad and iPhone - however on my macbook - my iTunes can no longer find my songs - i don't know how to make it look to the cloud to play my music

    i subscribed for itunes imatch - it works perfectly on my i-pad and iPhone - however on my macbook - my iTunes can no longer find my songs - i don't know how to make it look to the cloud to play my music - i think it keeps trying to find on the external harddrive where i used to keep my music

    Of course iTunes is looking for the music on the external HDD. Enabling iTunes Match does not magically change the location of the iTunes library to the cloud.
    To play the music either plug the external HDD back into your computer or create a new, empty library to use for streaming the iTM content. The latter can be accomplished by holding down the Option key when launching iTunes, choosing "create library" then enabling iTunes Match on the new library. DO NOT have iTunes scan your HDD for music.

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • How to make a restart of the workflow in a process controlled workflow?

    Hi Experts,
    How to make a restart of the workflow in case of process controlled workflow? Scenario is like this:
    The user has created a shopping cart with 1000 USD. The process schema has three process level with the first level being approval with completion.
    The first level being executed by the responsible purchaser. Here, the purchaser adds the source of supply and changes the price of the shopping cart 2000 USD and approve the shopping cart.
    Now, I want the approval task to start from beginning so that the requestor can know the changes and accept/reject the changes.
    Thanks and regards,
    Ranjan

    Hi,
    Restarting workflow goes to 1st level approval step. It is not requester.
    I think you need to set condition for "Acceptance by Contact Person" in Define Process Level.
    Regards,
    Masa

  • How to make a backup if the Storage & Backup icon is missing?

    how to make a backup if the Storage & Backup icon is missing?

    http://www.apple.com/icloud/setup/ios.html
    Sounds like you have an account, so two options I would say.
    Try turning it off, then off and see what options you get, or sync your phone to iTunes and click on the summary and choose the iCloud option.

  • How to make JDev aware of the xmldb API

    Hi everybody,
    I am a real beginner in Jdev, and I have to develop a
    Java Application using Oracle Java developer, against
    an XML-native database called eXist. I'll have to use
    a java API called xmldb supported by eXist in order to
    interact with the database. Although I have basic
    knowloedge in Object-oriented programming, but I don't
    know where to begin, especially how to make JDev aware
    of the xmldb API, and how to create classical
    application components (Windows, buttons, etc).
    Could you help me with some orientations and
    interesting links?.
    Thanks a lot.
    Mounir.

    Hi,
    don't know this database, but the database vendor should be able to explain how his DB is accessed from Java. If this requires libraries, then the vendor will provide these in JAR files, which you then configure with JDeveloper (as a custom library Tools --> Manage Libraries) or in the Project
    If there is a JDB driver for it, even better. This however is not a deliverable of JDeveloper but the database vendor
    Frank

  • How to make every account in the system login automatically?

    How to make every account in the system login automatically when Mac OS X startup?
    Thanks!

    I can see one way to do it. You'll need to install a script in each user account, and have it set as a login item for each user. Let's imagine you have three user accounts. Each user in Mac OS X has a UID number. Normally your first user has the UID of 501, the second one will be 502 and so on...
    You can determine the UID by running the following AppleScript while logged in on each user:
    do shell script ("ID")
    This'll return a long block of text, but right at the start you'll see the UID number. Let's assume your three users have the UIDs 501, 502 and 503. We begin with 501.
    Create the following script and save it as an application while logged in as 501. Note that the password you're entering is the password for UID 502. Also note that the forum system is creating line breaks where there shouldn't be any. The long "do shell script" line should be one line.
    delay 5 --This delay allows time for login to complete, but it may not be necessary.
    try
    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502"
    delay 5 --This delay could be shorter or longer, depending on how fast your machine is.
    tell application "System Events"
    keystroke "password for 502" --the password for UID 502
    keystroke return
    delay 1
    end tell
    on error
    display dialog "Unable to switch user."
    end try
    Open System Preferences, go to Accounts, click "login items" and drag your script (saved as an application) to the login items window.
    You basically repeat this process for each user account, modifying the script so it switches to the next user.
    This isn't ideal, because your passwords will be stored in the scripts, and each user could open the scripts and learn the passwords of the other users on that machine.
    I picked some of this up from a discussion over at the Macworld forums:
    http://hints.macworld.com/article.php?story=20031102031045417
    Message was edited by: The Preacher
    Message was edited by: The Preacher
    Message was edited by: The Preacher

Maybe you are looking for

  • Two questions about Risk Management 2.0

    hi experts, Please find below two questions about Risk Management: -In SPRO, Risk Management>Create top node: after completing information and executing I have this error: Error in the ABAP Application Program The current ABAP program "/ORM/ORM_CREAT

  • Persistent blue screen of death problems on Toshiba laptop pc; need help

    hey, guys,  I was hoping you could help me out here.  I have been experiencing persistent blue screen of death problems on my Toshiba laptop since December 21 of 2014.  The first two times I started having theses persistent issues, I downloaded a bun

  • Portal / Custom Development Licensing Question

    Hello, we want to install and use the Netweaver Portal with some "default" Portal features like rooms and some custom webdynpro development. But we are not sure how to license this scenario. We have a lot of licensed ERP / ECC users in our ABAP syste

  • Web dynpro alv colour row

    Hi. I want that when a condition is true, the row of alv have the colour red. how can i do that. thanks

  • Where to find/install my Plug Ins in Photoshop CC?

    How can I get my collection of plug-ins into Photoshop CC 64? In preferences plug ins I only see "Generator" and no possibillity to select a drive or any other place where the plug ins are located. Please help....Thanks a lot.