Dynamic source url in PKGBUILD
I made a PKGBUILD for a kde4 utility, it's here: http://aur.archlinux.org/packages.php?ID=15072
But the file name in source archive url is different from file name by which wget saves it to disc. I solved it by creating a symlink to the file with name that makepkg expects and removing it after package building.
But it's an ugly solution :-) , is there any way to do it "cleaner"?
Thank you, I was wondering what the brackets were for too
I based most of my "analysis" on the example at the end of the PKGBUILD man page
EXAMPLE
The following is an example PKGBUILD for the patch package. For more
examples, look through the build files of your distribution´s packages.
For those using Arch Linux, consult the ABS tree.
# Maintainer: judd <[email protected]>
pkgname=patch
pkgver=2.5.4
pkgrel=3
pkgdesc="A utility to apply patch files to original sources"
arch=(i686 x86_64)
url="http://www.gnu.org/software/patch/patch.html"
license=(´GPL´)
groups=(´base-devel´)
depends=(´glibc´ ´ed´)
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=(´ee5ae84d115f051d87fcaaef3b4ae782´)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
I was a little bit confused by lines like license=(`GPL`), as I thought of some special MAKEPKG syntax.
Maybe that should be corrected to license=('GPL') or license=("GPL").
edit: I checked and the actual patch PKGBUILD uses license=('GPL').
Similar Messages
-
AUR PKGBUILD Source URL times out [SOLVED]
I'm trying to build assogiate 0.2.1
http://aur.archlinux.org/packages.php?ID=9860
The source code is not available. The URL in the PKGBUILD for source times out.....
Connecting to www.kdau.com|216.231.55.137|:80... failed: Connection timed out.
Giving up.
SO.......I tried to use the source from Debian,
http://packages.debian.org/testing/utils/assogiate
http://packages.debian.org/source/squeeze/assogiate
editing the PKGBIULD source URL and md5sum, but now I get:
==> ERROR: One or more files did not pass the validity check!
The Modified PKGBUILD:
#Contributor: jordz ([email protected])
pkgname=assogiate
pkgver=0.2.1
pkgrel=4
pkgdesc="An editor of the MIME file types database for GNOME"
arch=(i686 x86_64)
depends=('glibmm' 'gtkmm' 'gnome-vfsmm' 'libxml++' 'gettext' 'libtool' 'gnome-doc-utils')
makedepends=('pkgconfig')
source=(http://ftp.de.debian.org/debian/pool/main/a/assogiate/assogiate_0.2.1.orig.tar.gz)
md5sums=('a63986ab2c3ea3e1a31f263ca0ff643d')
license=('GPL')
url="http://www.kdau.com/projects/assogiate/"
build()
cd ${srcdir}/$pkgname-$pkgver
./configure --prefix=/usr --disable-scrollkeeper
make || return 1
make DESTDIR=${pkgdir} install
Now what to do next?
Last edited by jeff story (2009-11-29 09:16:45)==> Finished making: assogiate 0.2.1-4 x86_64 (Sun Nov 29 01:13:59 PST 2009)
SOLVED..........My bad. I didn't save the last edit to the md5sum!!!
Last edited by jeff story (2009-11-29 09:46:55) -
[SOLVED] Creating PKGBUILDS where the source URL does not have version
I am trying to create a a PKBUILD for idevsutil which is provided by IDrive for backing up into their cloud. The archive provided by them contains just a binary and a readme. Now the source URL, http://evs.idrive.com/download/download … inux64.zip does not include the version number. So looks like they are updating the same file for every version. In case they update the version the checksum should fail which should prevent mismatch in dev versioning and what gets installed. But are there any best practices for such cases when we write PKGBUILD?
Last edited by nsmathew (2013-12-28 16:22:02)Trilby wrote:
The content provided by the source url for version-control packages is also always changing, yet the PKGBUILDS don't need to. The key for these is to use the 'SKIP' entry in the checksum variable. The packages must also have the version control system appended to the title (eg package-git).
You certainly could make a package-dev which skipped the checksum. However, this would mean user's of the PKGBUILD would be downloading a random unchecked binary from someone's idrive site. This seems like a very bad idea.
My idea was to not allow for the installation of the software if the upstream version changes which the checksum should take care off. Will then update the PKGBUILD with the new version and checksum.
In terms of the binary, it is the officially provided binary by IDrive and the URL points to the same.
graysky wrote:Don't think you can do much with that. I would send an email requesting a versioned archive explaining that you are packing their software for a linux distribution.
I have already requested for the license info on their dev forums, let me also check with them if a versioned archive is available. Thanks. -
Want to use dynamic sources for the rss feeds instead of hard
coding the URLs into the script. How can I use PHP within the
javascript. The below doesn't work.
RSS Replay is the dreamweaver extension
<script language="JavaScript1.2"
type="text/javascript">
<!-- hide script from non-js browsers
//RSS Replay v 1.5 by RNSoft
//MethodName:AJAX-Proxy-PHP
//SettingName:
rssReplayFeed("rss",
10,
"<div><span <<headlineclass>>><a
href=\"<<link>> \"\" target=\"_blank\"
onMouseOver=\"flvXAS1(0)\"
onMouseOut=\"flvXAS1(1,1,50,1)\"><<headline>></a>"+"\n"+
"</span>",
"<br><span
<<storyclass>>><<strip_story>></span></div><br>"+"\n"+
""+"\n"+
rrpBuildSourceList("<?php echo
$row_rsNewsFeed['source1']; ?>",
"<?php echo $row_rsNewsFeed['source2']; ?>",
"<?php echo $row_rsNewsFeed['source3']; ?>",
"<?php echo $row_rsNewsFeed['source4']; ?>",
"<?php echo $row_rsNewsFeed['source5']; ?>"),
true,
-1,
true,
"d-date")
// end hide of script -->
</script>.oO(jsteinmann)
>hmmmmm......
>
>can you give me an example?
Like you can use PHP to output HTML, you can also use it to
generate JS.
There's not much of a difference. If the script is embedded
in the HTML
with a 'script' element like in your case, it's particularly
easy. Here
is a short example:
http://www.alt-php-faq.org/local/33/
Of course the entire page has to be passed through PHP,
usually by
simply giving it a .php extension. Whether the embedded PHP
outputs
some HTML or JS doesn't really matter from the browser's
point of view.
Here's a more advanced example of using PHP in an external JS
file:
http://javascriptkit.com/javatutors/externalphp.shtml
The key point in both is that PHP is used to write JS
statements, which
are then interpreted by the browser.
For more informations and examples try a Google search for
keywords like
"generate javascript with php"
Micha -
AUR web frontend sources URL problem
Sometimes the $pkgname is different from source package tarball filename, so it is necessary to use a different variables.. For an imaginary foo package, with sources available at http://foo.org/foo-linux-1.2.tar.gz , the PKGBUILD fragment may look like
pkgname=foo
pkgname0=foo-linux
pkgver=1.2
source=('http://foo.org/$pkgname0-$pkgver.tar.gz')
unfortunaly, in such case, the AUR web page points to a wrong sources URL: http://foo.org/foo0-1.2.tar.gz . It looks like the frontend thinks that the source URL must contain $pkgname, and is doing simple string substitution, not interpreting the PKGBUILD as a shell script.
Is there already a working way how to form the PKGBUILD, to avoid this sort of problem ?
Last edited by mykhal (2007-09-02 17:28:50)tardo wrote:...I don't think I'll ever flag the openssh pkg as safe because you're implementing completely new functions not found in the official package. Other than that, fix the others and you're good to go =/
thanks for the review.
If you look more carefully at the openssh patch, it is not implementing anything new, openssh has an infrastructure for using hardware engines (engines.h), but is not used by default somehow, the patch is just enabling it. Anyway, I'm not creator of the patch, is it taken from Michal Ludvig's site (http://www.logix.cz/michal/devel/padlock/) , some of his patches have also been accepted in linux kernel.
But I understand, this is very sensitive package.. -
Hi all,
I'm trying to update a package but I have some problem to download it:
the source url is:
http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.6/gtk-nodoka-engine-0.6.tar.gz;hb=HEAD
with a browser the file is downloaded correctly, but with wget the name of the file is something like
index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.6%2Fgtk-nodoka-engine-0.6.tar.gz;hb=HEAD
Someone know some hacks for this problem?
Thanks
Luca
Last edited by luca (2007-09-14 19:33:59)Oops, my bad. What I said only applies to makepkg 3.1 .
It works fine with makepkg 3.0 indeed, except the md5sum part. Also it fails to copy the files from $startdir/src to $SRCDEST (which defaults to $startdir), but it isn't critical.
makepkg 3.1 however first download the files to $SRCDEST (which still defaults to $startdir), and then try to link them to $startdir/src, where it fails. And it stops there.
I am not sure if I should report a bug for this, since it's apparently not possible to support these broken url...
Otherwise, after thinking a bit on this problem, rather than using this dirty hack previously mentioned : FTPAGENT="$FTPAGENT -O gtk-nodoka-engine-0.6.tar.gz;hb=HEAD"
or using git manually and trying to checkout the stable release with it,
why not just combining these 2 ways?
That is, downloading the files manually with wget (so not using the sources array, just like git/svn/cvs PKGBUILDs), and extracting them manually.
This works nicely with both makepkg versions.
pkgname=gtk-engine-nodoka
pkgver=0.6
pkgrel=1
pkgdesc="Default gtk engine provided by Fedora8"
url="https://hosted.fedoraproject.org/projects/nodoka/wiki"
license=('GPL')
depends=('gtk2')
makedepends=('pkgconfig')
arch=(i686)
options=(!libtool)
build() {
cd $startdir/src
wget -O gtk-nodoka-engine-0.6.tar.gz "http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.6/gtk-nodoka-engine-0.6.tar.gz;hb=HEAD"
wget -O nodoka-theme-gnome-0.3.2.tar.gz "http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.3/nodoka-theme-gnome-0.3.2.tar.gz;hb=HEAD"
tar -xzvf gtk-nodoka-engine-0.6.tar.gz
tar -xzvf nodoka-theme-gnome-0.3.2.tar.gz
cd $startdir/src/gtk-nodoka-engine-$pkgver
sed -i 's|/usr/bin/install|/bin/install|g' $startdir/src/gtk-nodoka-engine-$pkgver/src/Makefile.in
./configure --prefix=/usr --enable-animation
make || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/usr/share/themes
cd $startdir/src/nodoka-theme-gnome
cp -r Nodoka $startdir/pkg/usr/share/themes
Of course, that's still rather awkward, we have to do manually what makepkg is supposed to do, but well, I am afraid there isn't any real solutions.
I still think the best one is to contact these guys, and ask them if they can do something about it -
Use of SOAP Receiver Adapter in a recursive way with dynamic Target URLs
Hi all,
I have a following scenario.
1. I have to call a webservice with a URL http://myserver.com/default.aspx?action=index
This will return a list of xml filenames as below
<?xml version="1.0" encoding="UTF-8"?>
<filelist>
<file uuid="test1" />
<file uuid="test2" />
<file uuid="test3" />
<file uuid="test4" />
</filelist>
2. Now I have to call the same webservice with a change in action so that the url looks like
URL - http://myserver.com/default.aspx?action=fetch&uuid=
for all the filenames in the list
So in essence, I have to create a dynamic URLs recursively like
http://myserver.com/default.aspx?action=fetch&uuid=test1
http://myserver.com/default.aspx?action=fetch&uuid=test2 and so on
3. And with each call to the URL in step 2, the incoming xml is to be mapped to an IDoc.
I will be creating a ABAP proxy to initiate the calls.
I would like some ideas so as to have a less complex approach to the solution.
Regards,
NeerajHi,
dynamic SOAP URL - adapter specific properties (http receiver adapter)
Dynamic configuration payload - https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/com/sap/aii/mapping/api/DynamicConfiguration.html
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
String a = http://something.abcd/applicationName/xmlMessage //set the value of actual action here
conf.put(key, a);
return ""; -
SOAP adapter and dynamic target URL
My scenario: synchronous communication ABAP Proxy <=> XI <=> External WebServices.
There is a need to have configurable (dynamic) target URL for SOAP Adapter. This target should be configurable from ABAP Proxy. Any idea how can I achieve my goal?
Some additional notes why I need configurable target URL. I've multiple WebService instances which has identical interfaces and the only difference is target URL. I see no need to define for each webservice different SOAP Adapter. The other thing is that customer want to have configuration of destination (target) url on backend system (where ABAP Proxy is used).Check http://help.sap.com/saphelp_nw70/helpdata/EN/29/5bd93f130f9215e10000000a155106/frameset.htm
It's possible to set the URL for Soap dynamically.
To process adapter attributes in the message header of the XI message, set the Use Adapter-Specific Message Attributes indicator and the Variable Transport Binding indicator.
You can evaluate the following attributes in the message header:
Description: You can set the entire URL.
Technical name: TServerLocation -
How to get Dynamic Converter URL
Hi all
I need to get dynamic converter url of document like http://<localhost>:<port>/cs/idcplg?IdcService=GET_DYNAMIC_CONVERSION&dID=7411.
I use DOC_INFO_BY_NAME and i can find document url using 'DocUrl'. But i cannot find anything about dynamic converter.
How can i get the url just using RIDC?
Best Regards
QianHi ,
Whether i can get which format will be converted(convert format in Dynamic Converter Admin Configuration Setting) ?
This is applicable for the UI alone where in all the formats that you want to have "HTML" option shown will be added from the above option .
As for getting Dynamic Conversion using the IdcService , all of the contents can be used irrespective of whether they are added in the DC Admin section or not . So if you want to show the HTML format then all you need to do is to call the GET_DYNAMIC_CONVERSION service and pass the dID of the respective contents .
Thanks,
Srinath -
Cost estimate and Dynamic Sourcing
We have multiple levels of sourcing in R/3 and the cost estimate is using this info to determine the cost at a distribution center. The special procurement key is used in R/3. We are now in the process of implementing APO/SNP and dynamic sourcing will be used. So, the question is how to use the sourcing from SNP when running a cost estimate. The business users want to have the most accurate sourcing data when running the costing run. There are over 600 production and distribution facilities and multiple levels of sourcing today, so updating this info manually in R/3 would be a challenge. Is there any intergration between SNP and PC or is custom development the only option?
Hi Jeff,
in SAP you never know, but I am almost sure that there is no such integration. In product costing there is a call into the ERP procurement to determine the best source of suuply and the associated costs. Might be that there is a user-exit to feed in alternative information, but probably no call into SNP.
I have heard this requirement the first time now. Sounds interesting...
best regards,
Udo -
Unable to read the source URL error for cffeed
Hi,
I am using the cffeed to read from my twitter RSS feed but I get this error:
Unable to read the source URL.
Status Code: 400. Try adding or changing UserAgent attribute in the CFFeed tag
My code is:
<cfset feedurl="http://twitter.com/statuses/user_timeline/somenumbers.atom" />
<cffeed
source="#feedurl#"
properties="feedmeta"
query="feeditems1" overwrite="true" />
It works but suddenly it stops and it takes time about 15 minutes or more to work again.
Can any body help me with this?
Thanks,
MandanaOne thing which I did not mentioned is I want to have 6 pages rss feed together and I made it like this:
<cffeed
source="#feedurl1#"
properties="feedmeta"
query="feeditems1" overwrite="true"
useragent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; GTB6.6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; AskTbBLPV5/5.11.3.15590)" />
<cffeed
source="#feedurl2#"
properties="feedmeta"
query="feeditems2" overwrite="true"
useragent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; GTB6.6; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; AskTbBLPV5/5.11.3.15590)"/>
I did it for 6 pages, each one with one cffeed and then:
<cfquery name="feeditemstotal" dbtype="query">
select * from feeditems1
union
select * from feeditems2
union
select * from feeditems3
union
select * from feeditems4
union
select * from feeditems5
union
select * from feeditems6
</cfquery> -
Dynamic source value for uix frame
Hi all,
I have UIX page with two frames, left is for navigation (includes tree) and right one is for content.
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:http="http://www.w3.org/TR/REC-html40">
<content>
<frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
<left>
<frame source="Tree.uix" name="tree" width="30%"/>
</left>
<center>
<frame name="contents" data:source="${sessionScope.startPage}"/>
</center>
</frameBorderLayout>
</content>
</page>I'm trying to use ${sessionScope.startPage} to get source value, but it doesn't work. I am sure that there's such a parameter in http session and I can't understand why this happens.
Could anyone please say if it's possible to use dynamic source for frame?
Did anyone meet such problems?
Is there any other way to set the source value?
thanx in advance
RenatHi again,
So far I've found such a solution:
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:http="http://www.w3.org/TR/REC-html40">
<content>
<frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
<top>
<frame source="Top.uix" name="top" height="10%"/>
</top>
<left>
<frame source="Tree.uix" name="tree" width="30%"/>
</left>
<center>
<frame name="contents" source="startPage.uix"/>
</center>
<bottom>
<frame source="Bottom.uix" name="bottom" height="10%"/>
</bottom>
</frameBorderLayout>
</content>
</page>where startPage.uix is:
<?xml version="1.0" encoding="windows-1251"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
</provider>
<contents>
<document>
<metaContainer>
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<pageLayout title="">
<contents>
</contents>
<pageHeader>
<globalHeader/>
</pageHeader>
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<event name="*">
<method class="myPack.PageUtils.RedirectAction" method="redirect2anotherPage"/>
</event>
</handlers>
</page>and redirect2anotherPage is:
public static EventResult redirect2anotherPage (BajaContext context, Page page,
PageEvent event) throws Throwable {
HttpSession hs = context.getServletRequest().getSession();
Page otherPage = new Page((String) hs.getAttribute("startPage"));
return new EventResult(RedirectUtils.getRedirectPage(context,
otherPage));
}This seems to be working, but I am not sure if this is the correct solution (lonely solution).
Is there a way to use only UIX EL syntax?
Any ideas about this?
Renat -
Dynamic Source NAT for multiple POOLS
I am setting up Dynamic Source NAT with a few Pools and Access-list to translate according to the Access-list. However when configure some ACL don't work anything. And the ACL don't "match" any. I know that the correct way would be to apply the ACL about interface with "ip access-group <ACL-name> in/out" however in this case would be impossible to apply more one ACL with ip access-group command.
FurthermoreI have tested to creating a route-map named TEST with all ACLs; but cannot to create all "ip nat inside source route-map... " with the same route-map name. Also checked the cisco example: http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13739-nat-routemap.html...
Attach the all configurations.
I need your help,
Thanks in advance!Oh my God!! Already works fine! I hadn't thought that "log" would be a painful
Thanks John Marshall!
Attach my troubleshooting:
INET#show ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 195.77.205.33:49529 10.55.0.1:49529 4.2.2.2:22 4.2.2.2:22
tcp 200.200.200.1:62978 10.55.1.1:62978 4.2.2.2:4343 4.2.2.2:4343
tcp 195.77.205.20:13493 181.70.12.18:13493 195.47.200.32:443 195.47.200.32:443
Furthermore we can to check the "rotary option also works!"
"INET#show ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 195.77.205.33:57238 10.55.0.1:57238 4.2.2.2:22 4.2.2.2:22
tcp 195.77.205.33:16393 10.55.1.1:16393 4.2.2.2:22 4.2.2.2:22"
Thanks again! -
Feature request: source function in PKGBUILD
I suggest to add an optional source function in PKGBUILD so that you can use makepkg -o also with packages that download the source without using the source array.
It would be very useful for git packages and the like, overall if the user is interested to see the source before actually compiling.
Just 2 cents..I would post the request here:
http://bugs.archlinux.org/ -
Source URL/Address - Hazel
Hazel is not supporting my credit card so I cant get it. But in the trial version Hazel has this property "Source URL/Address" which is the same information as "Where from" value in "Get info" in the contextual menu of a file.
Does anyone know how to access this Where from value through AppleScript? If Hazel can do it why cant AppleScript?Hi
set the_path to POSIX path of (choose file) as string
set the_where_froms to (do shell script "mdls -name kMDItemWhereFroms " & quoted form of the_path)
Hope this helps.
H
Maybe you are looking for
-
The mian problem is that my firefox hangs when I am going to watch videos such as on Youtube after that when I minimize the firefox then it become ok for some time and then again hangs. Please help me how I can solve this problem because I dont like
-
My client is asking me for following Client is using Router as edge device. 2 WAN links from different service provider ( each 20 Mbps) are getting terminated on the router. There are internal servers present in the network. Client want to make set
-
Automatic Downloads and Song Order
Hi, I have automatic downloads enabled on my iPhone 4 so songs I buy on my computer are automatically synced with the phone over the air right after I buy them. Great feature. Here's the problem: when I buy a song on my computer, it puts it at the t
-
REFX: display contracts without payment performed
Hello RE Gurus, I wonder is there any possibility in REFX to display Contracts, which don't have payment for current date yet. For example, I have 3 Commercial lease-out contracts with the same conditions and terms. For the Contract 1 Customer have p
-
How to exclude certain operations in PM order from task list?
Hi Experts, we have number of operations in task list and being attached to in maintenace plan. While scheduling Miantenance Plan system is creating order as per requirement with set of all operations present in the task list. we would like to restri