init
This commit is contained in:
		
						commit
						29da8777e6
					
				
					 9 changed files with 582 additions and 0 deletions
				
			
		
							
								
								
									
										52
									
								
								APKBUILD
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								APKBUILD
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,52 @@
 | 
			
		|||
# Maintainer: Alexander Zhirov <alexander@zhirov.kz>
 | 
			
		||||
pkgname=tftp-hpa-trq
 | 
			
		||||
pkgver=5.2
 | 
			
		||||
pkgrel=1
 | 
			
		||||
pkgdesc="Official tftp server with TRQ"
 | 
			
		||||
url="https://git.zhirov.kz/alexander/tftp-hpa-trq"
 | 
			
		||||
arch="all"
 | 
			
		||||
license="BSD"
 | 
			
		||||
subpackages="$pkgname-doc"
 | 
			
		||||
source="https://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-$pkgver.tar.xz
 | 
			
		||||
    in.tftpd.initd
 | 
			
		||||
    in.tftpd.confd
 | 
			
		||||
    fix-common.patch
 | 
			
		||||
    trq/trq.patch
 | 
			
		||||
    trq/trq.c
 | 
			
		||||
    trq/trq.h
 | 
			
		||||
    "
 | 
			
		||||
 | 
			
		||||
options="!check"
 | 
			
		||||
 | 
			
		||||
prepare() {
 | 
			
		||||
    # После распаковки архива необходимо изменить имя директории на корректное
 | 
			
		||||
    mv "$srcdir/tftp-hpa-$pkgver" "$srcdir/$pkgname-$pkgver"
 | 
			
		||||
    default_prepare
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
    cp $srcdir/trq.c $builddir/tftpd
 | 
			
		||||
    cp $srcdir/trq.h $builddir/tftpd
 | 
			
		||||
 | 
			
		||||
    ./configure \
 | 
			
		||||
        --build=$CBUILD \
 | 
			
		||||
        --host=$CHOST \
 | 
			
		||||
        --prefix=/usr \
 | 
			
		||||
        --mandir=/usr/share/man
 | 
			
		||||
    make
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package() {
 | 
			
		||||
    make INSTALLROOT="$pkgdir" install
 | 
			
		||||
    install -d "$pkgdir"/var/tftpboot
 | 
			
		||||
    install -Dm755 "$srcdir"/in.tftpd.initd "$pkgdir"/etc/init.d/in.tftpd-trq
 | 
			
		||||
    install -Dm644 "$srcdir"/in.tftpd.confd "$pkgdir"/etc/conf.d/in.tftpd-trq
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sha512sums="a5198e923a6e58281f749dc77b3f3ed8579e56b6f0fd6a17482cc88bdc8d34b6702c7c709717885b9b937ecae459d9a832328a49a2e3536dc7432cdb39d2a394  tftp-hpa-5.2.tar.xz
 | 
			
		||||
0d103efc8a6febc94c599d984ba22e3272c422619b548a24953b006c99f2739ad8149543a09b06a50a2367e877117b1ee32f8c79bb81d19a43bccdc7ed1f13a6  in.tftpd.initd
 | 
			
		||||
b13d18d2918ece59df61a8239692b91f8b491659b57b63293ca2b99347f0503a213f1f7dd80165478811b11fb1d5537aea6e8fd3de907d880224205c5c65b0bf  in.tftpd.confd
 | 
			
		||||
40127e7ce276a2bc015255dbeef2665bfe8ff006b1e1d8fb79797e946d6030fd74606cffe0bea11eaad276a693f223faaaf1c1ccb5f276b40fdad40b366172b7  fix-common.patch
 | 
			
		||||
fbbf2c15dd1f3fef96672fe0a4b7b424e7ad84ba4eb456c07498d33742662c5859b800c8cdf61c36c5927c00500f560a4f1d48aefaa5d5f5ccbb622538e9140e  trq.patch
 | 
			
		||||
314eea07339e7c8605a69db65638aacfb488077f39b127bdc81369202d0edae6545a456705cebe08fde3729293b7609892a09d91ec2f7dc93b63d693b10ff833  trq.c
 | 
			
		||||
29cc72f3197bcaea4a88dace5c91d53dad5d20a397752198e601e2ed83fdb66fca50a5b4b03c4d3033ebd7a0be1e90801a692c514733412d8d96cafde26e0837  trq.h"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue