# Contributor: Francesco Colista # Maintainer: Francesco Colista global pkgname := 'apache-mod-auth-kerb' global _pkgname := 'mod_auth_kerb' global pkgver := '5.4' global pkgrel := '4' global pkgdesc := '"A Kerberos authentication module for the Apache Http Server'" global url := '"http://sourceforge.net/projects/modauthkerb/'" global arch := '"all'" global license := '"BSD MIT'" global depends := '"apache2 heimdal'" global makedepends := '"apache2-dev heimdal-dev'" global source := ""http://downloads.sourceforge.net/project/modauthkerb/$_pkgname/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.gz mod_auth_kerb-5.4-httpd24.patch mod_auth_kerb_compile.patch mod-auth-kerb.conf"" global _builddir := ""$srcdir"/$_pkgname-$pkgver" proc prepare { var i = '' cd $_builddir for i in [$source] { matchstr $i { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $srcdir/$_pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-krb5=/usr \ --without-krb4 \ --with-apache=/usr \ || return 1 make -j1 || return 1 } proc package { cd $srcdir/$_pkgname-$pkgver # make DESTDIR="$pkgdir" install || return 1 mkdir -p "$pkgdir"/etc/apache2/conf.d mkdir -p "$pkgdir"/usr/lib/apache2 install -D -m755 ./src/.libs/*.so "$pkgdir"/usr/lib/apache2 install -D -m644 ../../mod-auth-kerb.conf "$pkgdir"/etc/apache2/conf.d/mod-auth-kerb.conf } global md5sums := '"642b81763ad3ca81dba359cb952da5e3 mod_auth_kerb-5.4.tar.gz 3df80322c5697404b4e9a6ea53a7799a mod_auth_kerb-5.4-httpd24.patch 9b238dc704dd06cd6c2880d83ca38cc8 mod_auth_kerb_compile.patch 7f9a0976ff101226fae4fd9b811b21a4 mod-auth-kerb.conf'" global sha256sums := '"690ddd66c6d941e2fa2dada46588329a6f57d0a3b9b2fd9bf055ebc427558265 mod_auth_kerb-5.4.tar.gz dffaa66925dab20d2d4b84beb171f0c3ab195a294d422e5ca6e8867e48df24a1 mod_auth_kerb-5.4-httpd24.patch bbd036788971a6f9cf97f00870ca83e214f043279ee9fa52c241abc7ece1a587 mod_auth_kerb_compile.patch 2601c080a091b0fc598e542d754a9a8f5909fadc8f91c4433ed6f5002b36a41d mod-auth-kerb.conf'" global sha512sums := '"93fdf0e43af1c24e8c8204d09240b708747068ef99dd8d21b45cb4d132d31e6d582d49ea5e23b905f55cb0d4a20b1ecb58de1bcbfdad1d016e536fc622b63214 mod_auth_kerb-5.4.tar.gz 15100aee410f899fae41d921c1016bc901602871fd387834b4d486521db7ffeb6e917bfcdc5841c8cb2828497e230aa9f04071e36c31ccc8ed5ede3fb0a286dd mod_auth_kerb-5.4-httpd24.patch f8fd9cce15593592995a53374a7dbbf6171c4f5e9e82d5bf59953fcfa6fa81cf6890ec4c9ddc2e0963060ea34e98b590f037b1f0274c284085350e6bc4792748 mod_auth_kerb_compile.patch b6cfa12dbfd37f98de4d5b23f16462efbfa394d4e9dd6a15772aa18fbec0704c3d9f6e5d242d501a8f1c3091abf893de261115ee54ea31d9d9e0a4d1724473a4 mod-auth-kerb.conf'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgname) op: Equal rhs: {(apache-mod-auth-kerb)} spids: [6] ) ] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgname) op:Equal rhs:{(mod_auth_kerb)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(5.4)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(4)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A Kerberos authentication module for the Apache Http Server"))} spids: [18] ) ] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://sourceforge.net/projects/modauthkerb/"))} spids: [23] ) ] spids: [23] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ ("BSD MIT"))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("apache2 heimdal"))} spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("apache2-dev heimdal-dev"))} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://downloads.sourceforge.net/project/modauthkerb/") ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\tmod_auth_kerb-5.4-httpd24.patch\n") ("\tmod_auth_kerb_compile.patch\n") ("\tmod-auth-kerb.conf") ) } spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver")} spids: [67] ) ] spids: [67] ) (FuncDef name: prepare body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[86])] spids: [84] ) (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {($ VSub_Name "$i")}) terminator: ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$i")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [115 117 141 -1] ) ] spids: [108 112 144] ) ] spids: [105 147] ) spids: [101 103] ) ] spids: [81] ) spids: [77 80] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver")} ) (AndOr children: [ (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--with-krb5) (Lit_Other "=") (/usr)} {(--without-krb4)} {(--with-apache) (Lit_Other "=") (/usr)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(make)} {(-j1)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [156] ) spids: [152 155] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver")} ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/apache2/conf.d)}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/apache2)}) (C {(install)} {(-D)} {(-m755)} {(./src/.libs/) (Lit_Other "*") (.so)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/apache2)} ) (C {(install)} {(-D)} {(-m644)} {(../../mod-auth-kerb.conf)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/apache2/conf.d/mod-auth-kerb.conf)} ) ] spids: [230] ) spids: [226 229] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("642b81763ad3ca81dba359cb952da5e3 mod_auth_kerb-5.4.tar.gz\n") ("3df80322c5697404b4e9a6ea53a7799a mod_auth_kerb-5.4-httpd24.patch\n") ("9b238dc704dd06cd6c2880d83ca38cc8 mod_auth_kerb_compile.patch\n") ("7f9a0976ff101226fae4fd9b811b21a4 mod-auth-kerb.conf") ) } spids: [297] ) ] spids: [297] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "690ddd66c6d941e2fa2dada46588329a6f57d0a3b9b2fd9bf055ebc427558265 mod_auth_kerb-5.4.tar.gz\n" ) ( "dffaa66925dab20d2d4b84beb171f0c3ab195a294d422e5ca6e8867e48df24a1 mod_auth_kerb-5.4-httpd24.patch\n" ) ("bbd036788971a6f9cf97f00870ca83e214f043279ee9fa52c241abc7ece1a587 mod_auth_kerb_compile.patch\n") ( "2601c080a091b0fc598e542d754a9a8f5909fadc8f91c4433ed6f5002b36a41d mod-auth-kerb.conf" ) ) } spids: [305] ) ] spids: [305] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "93fdf0e43af1c24e8c8204d09240b708747068ef99dd8d21b45cb4d132d31e6d582d49ea5e23b905f55cb0d4a20b1ecb58de1bcbfdad1d016e536fc622b63214 mod_auth_kerb-5.4.tar.gz\n" ) ( "15100aee410f899fae41d921c1016bc901602871fd387834b4d486521db7ffeb6e917bfcdc5841c8cb2828497e230aa9f04071e36c31ccc8ed5ede3fb0a286dd mod_auth_kerb-5.4-httpd24.patch\n" ) ( "f8fd9cce15593592995a53374a7dbbf6171c4f5e9e82d5bf59953fcfa6fa81cf6890ec4c9ddc2e0963060ea34e98b590f037b1f0274c284085350e6bc4792748 mod_auth_kerb_compile.patch\n" ) ( "b6cfa12dbfd37f98de4d5b23f16462efbfa394d4e9dd6a15772aa18fbec0704c3d9f6e5d242d501a8f1c3091abf893de261115ee54ea31d9d9e0a4d1724473a4 mod-auth-kerb.conf" ) ) } spids: [313] ) ] spids: [313] ) ] )