iPXE
Paquet d’installation silencieuse pour iPXE
0.0.6749-3
- package: tis-compile-ipxe
- name: iPXE
- version: 0.0.6749-3
- maintainer: sfonteneau
- locale: all
- architecture: all
- signature_date:
- size: 706.17 Ko
- homepage : https://github.com/ipxe/ipxe
package : tis-compile-ipxe
version : 0.0.6749-3
architecture : all
section : base
priority : optional
name : iPXE
categories :
maintainer : sfonteneau
description :
depends :
conflicts :
maturity : PROD
locale : all
target_os :
min_wapt_version :
sources : https://github.com/ipxe/ipxe/commit/53f089b723e16eecb4fd2e2a59b74b3932431b30
installed_size :
impacted_process :
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage : https://github.com/ipxe/ipxe
package_uuid : 2586bf8e-d82f-415d-9dce-69afacc71ce2
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 17e00f040b502c45652e4e7348b4c38ab9d9dda43e3af332da16f38c62598694
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : R9bnj6R1BKuSN8ThqSLW1pieBXmY4QV4Wh0eET/XGKhgOAFcM6IElS9uBlrJk5+IrT9M0M4EGiDWMLQxk1FKURZ9+UkjT95H7xyQcjAuvOdGjPOEZ8R/4FWTvh8px4bJdbvErZpYLJnRgnoHVTGFbefVbFyZXP65vK5RZAgXPaCqOnxXo/K+daJ42QZaD3u2vqwuv4pju/PJcEbhTlEkUneBD7dV98UM2RvrpoGVcZTYEXstszbdCpvfISVZcwm577Qxbwp0o/gF6+yQsY10I1RBr2J4GEfNXsk3RYEBHLq4Zfd4bAQ6FpFT0O3VWnWJlv7KKkHxfJPVEnV00/Rx2w==
signature_date : 2024-08-23T18:00:44.379262
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
def install():
wads_folder = makepath(WAPT.wapt_base_dir, 'waptserver', 'repository', 'wads')
if platform.system() == 'Linux':
if type_debian():
wads_folder = '/var/www/wads'
elif type_redhat():
wads_folder = '/var/www/html/wads'
iniwaptserver = makepath(WAPT.wapt_base_dir,'conf','waptserver.ini')
if isfile(iniwaptserver):
inivalue = inifile_readstring(iniwaptserver,"options","wads_folder")
if inivalue :
wads_folder = inivalue
if isdir(makepath(wads_folder,'pxe')):
filecopyto("ipxe.efi",makepath(wads_folder,"pxe","ipxe_github.efi"))
filecopyto("undionly.kpxe",makepath(wads_folder,"pxe","undionly_github.kpxe"))
if platform.system() == 'Linux':
if type_debian():
nginx_user = 'www-data'
elif type_redhat():
nginx_user = 'nginx'
run('chown wapt:%s "%s"' % (nginx_user,makepath(wads_folder,"pxe","ipxe_github.efi")))
run('chown wapt:%s "%s"' % (nginx_user,makepath(wads_folder,"pxe","undionly_github.kpxe")))
else:
print('SKIP Folder %s not exist' % makepath(wads_folder,'pxe'))
# -*- coding: utf-8 -*-
from setupdevhelpers import *
release_only = False
def update_package():
list_package = ['git','build-essential','zlib1g-dev','binutils-dev','gcc','liblzma-dev','make']
print('install %s' % ' '.join(list_package))
install_apt(' '.join(list_package))
tmpdir='/tmp'
mkdirs('%s/ipxe' % tmpdir)
run('git clone https://github.com/ipxe/ipxe.git %s/ipxe' % tmpdir)
if release_only:
hashgit = json.loads(wgets('https://api.github.com/repos/ipxe/ipxe/tags'))[0]['commit']['sha']
run('git -C %s/ipxe reset --hard %s --' % (tmpdir,hashgit))
print('custom ipxe')
with open('%s/ipxe/src/config/console.h' % tmpdir,'r') as f:
data = f.read()
data = data.replace('#define KEYBOARD_MAP us','#define KEYBOARD_MAP dynamic')
with open('%s/ipxe/src/config/console.h' % tmpdir,'w') as f:
f.write(data)
print('compile legacy ipxe')
run('cd %s/ipxe/src ; make bin/undionly.kpxe' % tmpdir)
print('compile uefi ipxe')
run('cd %s/ipxe/src ; make bin-x86_64-efi/ipxe.efi' % tmpdir)
print('compile uefi snponly')
run('cd %s/ipxe/src ; make bin-x86_64-efi/snponly.efi' % tmpdir)
pxe_folder = basedir
filecopyto('%s/ipxe/src/bin/undionly.kpxe' % tmpdir,'%s/undionly.kpxe' % pxe_folder)
filecopyto('%s/ipxe/src/bin-x86_64-efi/ipxe.efi' % tmpdir, '%s/ipxe.efi' % pxe_folder)
filecopyto('%s/ipxe/src/bin-x86_64-efi/snponly.efi' % tmpdir, '%s/snponly.efi' % pxe_folder)
version = "0.0.%s" % run(r"git -C %s/ipxe rev-list --count master" % tmpdir).strip()
hashgit = run("git -C %s/ipxe rev-parse HEAD" % tmpdir).split("\n")[0]
control.sources = 'https://github.com/ipxe/ipxe/commit/%s' % hashgit
control.version = "%s-%s" % (version, control.version.split("-", 1)[-1])
control.save_control_to_wapt()
423d99c0ec7083d5ea82c70219de37f39b473cf4f36c656ab7e5f88068915ddf : snponly.efi
893dbfe09065e026c2e1f2dbb43a072c6f15e7c97ab9ec01ae6ce90cbd3b7de0 : setup.py
035af04f874d0f606091fe05eb6036783ccf4675ed0226b72704e9a57a7f4f1b : undionly.kpxe
079b2c234ecbbea105b8d8ec5463abb7c3329ef17e2d36a1e414c09f1f1bcb56 : update_package.py
eb4f266e83de98972df21be3e195540c7b176bfd4b0950049a2eed112d07cf9b : ipxe.efi
17e00f040b502c45652e4e7348b4c38ab9d9dda43e3af332da16f38c62598694 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
65cfd0efb5496296283b67cb3b5f55e77e60b774336e7a74511567ad7d4e21b6 : luti.json
1b4065e2a0eb63065936b441548112e4591e22c3fca2ccc02b74bb3098cb2fb1 : WAPT/control