You are not logged in.

#1 2012-03-06 21:11:43

Ravenman
Member
Registered: 2009-07-03
Posts: 236

[Request] Apache Traffic Server

Hi to everyone:

Could anyone package this?: Apache Traffic Server

Overview:

    Caching

    Improve your response time, while reducing server load and bandwidth needs by caching and reusing frequently-requested web pages, images, and web service calls.

    Proxying

    Easily add keep-alive, filter or anonymize content requests, or add load balancing by adding a proxy layer.

    Fast

    Scales well on modern SMP hardware, handling 10s of thousands of requests per second.
    Extensible

    APIs to write your own plug-ins to do anything from modifying HTTP headers to handling ESI requests to writing your own cache algorithm.

    Proven

    Handing over 400TB a day at Yahoo! both as forward and reverse proxies, Traffic Server is battle hardened.

A lot of thanks. smile

Offline

#2 2012-05-09 14:14:50

xx4h
Member
Registered: 2011-02-28
Posts: 21
Website

Re: [Request] Apache Traffic Server

Here you go :-)

https://aur.archlinux.org/packages.php?ID=59149

much time spent, but was fun and i learned a lot :-)


Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx

Offline

#3 2012-05-09 14:23:19

SidK
Member
Registered: 2011-03-03
Posts: 116

Re: [Request] Apache Traffic Server

xx4h, good work on the PKGBUILD, just a few comments:
You have this:

if [ ${CARCH} = 'x86_64' ]; then
  depends=('tcl' 'start-stop-daemon' 'openssl' 'expat' 'libcap' 'pcre')
else
  depends=('tcl' 'start-stop-daemon' 'openssl' 'expat' 'libcap' 'pcre')
fi

Since your if/else are the same, you can just do:

  depends=('tcl' 'start-stop-daemon' 'openssl' 'expat' 'libcap' 'pcre')

Also your echo statements towards the bottom are in the package() function but should be in an install file. Imagine you package the .tar.xz, send it to someone else and they install it, they won't get the echo statements, only you (the packager) will see those. You can look at how mpd is packaged to see how this is done.

Lastly, you can remove gcc from the makedepends (and therefore the whole makedepdends line). This is because it's assumed people using the AUR have base-devel installed, which includes gcc.

Offline

#4 2012-05-09 15:13:27

xx4h
Member
Registered: 2011-02-28
Posts: 21
Website

Re: [Request] Apache Traffic Server

thanks your suggestions :-)

package is now updated :-)

edit: i think this thread can marked as solved :-)

Last edited by xx4h (2012-05-09 20:05:01)


Sysprofile
xx4h freenode #archlinux/#archlinux-aur/#archlinux-offtopic
BitCoin-Address: 13eaEB8YK5heFwXWieL8bZXXPq8fgbS8Kx

Offline

Board footer

Powered by FluxBB