Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.67 KB | None | 0 0
  1. sh-5.0# pwd
  2. /tmp
  3. sh-5.0# tar -xzf rtl8821ce-dkms-git.tar.gz
  4. sh-5.0# ls
  5. rtl8821ce-dkms-git rtl8821ce-dkms-git.tar.gz
  6. sh-5.0# cd rtl8821ce-dkms-git
  7. sh-5.0# ls
  8. PKGBUILD
  9. sh-5.0# ls
  10. PKGBUILD
  11. sh-5.0# pacm
  12. pacman pacman-conf pacman-db-upgrade pacman-key pacman-mirrors pacmd
  13. sh-5.0# pacman -R rtl8821ce-dkms-git
  14. checking dependencies...
  15.  
  16. Packages (1) rtl8821ce-dkms-git-1.0.5.r76.g7c4f827-1
  17.  
  18. Total Removed Size: 30.16 MiB
  19.  
  20. :: Do you want to remove these packages? [Y/n] y
  21. :: Running pre-transaction hooks...
  22. (1/1) Remove DKMS modules
  23. ==> dkms remove rtl8821ce/1.0.5.r76.g7c4f827 -k 5.3.12-1-MANJARO
  24.  
  25. :: Processing package changes...
  26. (1/1) removing rtl8821ce-dkms-git [####################################################################] 100%
  27. :: Running post-transaction hooks...
  28. (1/1) Arming ConditionNeedsUpdate...
  29. sh-5.0#
  30. sh-5.0# dkms status
  31. sh-5.0# dkms remove module/version --all
  32. Error! There are no instances of module: module
  33. version located in the DKMS tree.
  34. sh-5.0# ls
  35. PKGBUILD
  36. sh-5.0# makepkg --help
  37. makepkg (pacman) 5.2.1
  38.  
  39. Make packages compatible for use with pacman
  40.  
  41. Usage: /usr/bin/makepkg [options]
  42.  
  43. Options:
  44. -A, --ignorearch Ignore incomplete arch field in PKGBUILD
  45. -c, --clean Clean up work files after build
  46. -C, --cleanbuild Remove $srcdir/ dir before building the package
  47. -d, --nodeps Skip all dependency checks
  48. -e, --noextract Do not extract source files (use existing $srcdir/ dir)
  49. -f, --force Overwrite existing package
  50. -g, --geninteg Generate integrity checks for source files
  51. -h, --help Show this help message and exit
  52. -i, --install Install package after successful build
  53. -L, --log Log package build process
  54. -m, --nocolor Disable colorized output messages
  55. -o, --nobuild Download and extract files only
  56. -p <file> Use an alternate build script (instead of 'PKGBUILD')
  57. -r, --rmdeps Remove installed dependencies after a successful build
  58. -R, --repackage Repackage contents of the package without rebuilding
  59. -s, --syncdeps Install missing dependencies with pacman
  60. -S, --source Generate a source-only tarball without downloaded sources
  61. -V, --version Show version information and exit
  62. --allsource Generate a source-only tarball including downloaded sources
  63. --check Run the check() function in the PKGBUILD
  64. --config <file> Use an alternate config file (instead of '/etc/makepkg.conf')
  65. --holdver Do not update VCS sources
  66. --key <key> Specify a key to use for gpg signing instead of the default
  67. --noarchive Do not create package archive
  68. --nocheck Do not run the check() function in the PKGBUILD
  69. --noprepare Do not run the prepare() function in the PKGBUILD
  70. --nosign Do not create a signature for the package
  71. --packagelist Only list package filepaths that would be produced
  72. --printsrcinfo Print the generated SRCINFO and exit
  73. --sign Sign the resulting package with gpg
  74. --skipchecksums Do not verify checksums of the source files
  75. --skipinteg Do not perform any verification checks on source files
  76. --skippgpcheck Do not verify source files with PGP signatures
  77. --verifysource Download source files (if needed) and perform integrity checks
  78.  
  79. These options can be passed to pacman:
  80.  
  81. --asdeps Install packages as non-explicitly installed
  82. --needed Do not reinstall the targets that are already up to date
  83. --noconfirm Do not ask for confirmation when resolving dependencies
  84. --noprogressbar Do not show a progress bar when downloading files
  85.  
  86. If -p is not specified, makepkg will look for 'PKGBUILD'
  87.  
  88. sh-5.0# makepkg -s
  89. ==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
  90. catastrophic damage to your system.
  91. sh-5.0# su manjaro
  92. su: user manjaro does not exist
  93. sh-5.0# su artem
  94. [artem@manjaro rtl8821ce-dkms-git]$ ls
  95. PKGBUILD
  96. [artem@manjaro rtl8821ce-dkms-git]$ makepkg -s
  97. ==> ERROR: You do not have write permission for the directory $BUILDDIR (/tmp/rtl8821ce-dkms-git).
  98. Aborting...
  99. [artem@manjaro rtl8821ce-dkms-git]$ exit
  100. exit
  101. sh-5.0# chmod go+rwX .
  102. sh-5.0# su artem
  103. [artem@manjaro rtl8821ce-dkms-git]$ makepkg -s
  104. ==> Making package: rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (Sun Dec 8 02:57:55 2019)
  105. ==> Checking runtime dependencies...
  106. ==> Checking buildtime dependencies...
  107. ==> Retrieving sources...
  108. -> Cloning rtl8821ce git repo...
  109. Cloning into bare repository '/tmp/rtl8821ce-dkms-git/rtl8821ce'...
  110. fatal: unable to access 'https://github.com/tomaspinho/rtl8821ce.git/': Could not resolve host: github.com
  111. ==> ERROR: Failure while downloading rtl8821ce git repo
  112. Aborting...
  113. [artem@manjaro rtl8821ce-dkms-git]$ ls
  114. PKGBUILD src
  115. [artem@manjaro rtl8821ce-dkms-git]$ less PKGBUILD
  116. [artem@manjaro rtl8821ce-dkms-git]$ wget https://github.com/tomaspinho/rtl8821ce.git
  117. --2019-12-08 03:02:22-- https://github.com/tomaspinho/rtl8821ce.git
  118. Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
  119. Resolving github.com (github.com)... failed: Name or service not known.
  120. wget: unable to resolve host address 'github.com'
  121. [artem@manjaro rtl8821ce-dkms-git]$ less PKGBUILD
  122. [artem@manjaro rtl8821ce-dkms-git]$ makepkg -s
  123. ==> Making package: rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (Sun Dec 8 03:06:04 2019)
  124. ==> Checking runtime dependencies...
  125. ==> Checking buildtime dependencies...
  126. ==> Retrieving sources...
  127. -> Updating rtl8821ce git repo...
  128. Fetching origin
  129. fatal: unable to access 'https://github.com/tomaspinho/rtl8821ce.git/': Could not resolve host: github.com
  130. error: Could not fetch origin
  131. ==> WARNING: Failure while updating rtl8821ce git repo
  132. ==> Validating source files with sha256sums...
  133. rtl8821ce ... Skipped
  134. ==> Extracting sources...
  135. -> Creating working copy of rtl8821ce git repo...
  136. Cloning into 'rtl8821ce'...
  137. done.
  138. ==> Starting pkgver()...
  139. ==> WARNING: /tmp/rtl8821ce-dkms-git/PKGBUILD is not writeable -- pkgver will not be updated
  140. ==> Entering fakeroot environment...
  141. ==> Starting package()...
  142. ==> Tidying install...
  143. -> Removing libtool files...
  144. -> Purging unwanted files...
  145. -> Removing static library files...
  146. -> Stripping unneeded symbols from binaries and libraries...
  147. -> Compressing man and info pages...
  148. ==> Checking for packaging issues...
  149. ==> Creating package "rtl8821ce-dkms-git"...
  150. -> Generating .PKGINFO file...
  151. -> Generating .BUILDINFO file...
  152. -> Generating .MTREE file...
  153. -> Compressing package...
  154. ==> Leaving fakeroot environment.
  155. ==> Finished making: rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (Sun Dec 8 03:06:25 2019)
  156. [artem@manjaro rtl8821ce-dkms-git]$ ls
  157. PKGBUILD pkg rtl8821ce rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz src
  158. [artem@manjaro rtl8821ce-dkms-git]$ exit
  159. exit
  160. sh-5.0# ls
  161. PKGBUILD pkg rtl8821ce rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz src
  162. sh-5.0# dkms install rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
  163. Error! No valid dkms.conf in dkms_source_tree or dkms_binaries_only.
  164. rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz is not a valid DKMS tarball.
  165. sh-5.0# pacman -s rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
  166. error: invalid option '-s'
  167. sh-5.0# pacman -S rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
  168. error: target not found: rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
  169. warning: 'rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync?
  170. sh-5.0# pacman -U rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1-x86_64.pkg.tar.xz
  171. loading packages...
  172. resolving dependencies...
  173. looking for conflicting packages...
  174.  
  175. Packages (1) rtl8821ce-dkms-git-1.0.5.r36.gca4abd8-1
  176.  
  177. Total Installed Size: 30.16 MiB
  178.  
  179. :: Proceed with installation? [Y/n] y
  180. (1/1) checking keys in keyring [####################################################################] 100%
  181. (1/1) checking package integrity [####################################################################] 100%
  182. (1/1) loading package files [####################################################################] 100%
  183. (1/1) checking for file conflicts [####################################################################] 100%
  184. (1/1) checking available disk space [####################################################################] 100%
  185. :: Processing package changes...
  186. (1/1) installing rtl8821ce-dkms-git [####################################################################] 100%
  187. :: Running post-transaction hooks...
  188. (1/2) Install DKMS modules
  189. ==> dkms install rtl8821ce/1.0.5.r36.gca4abd8 -k 5.3.12-1-MANJARO
  190. (2/2) Arming ConditionNeedsUpdate...
  191. sh-5.0#
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. [manjaro@manjaro mnt]$ sudo mv /tmp/rtl8821ce-dkms-git.tar.gz /mnt/tmp
  201. [manjaro@manjaro mnt]$ cd /mnt/tmp
  202. [manjaro@manjaro tmp]$ ls
  203. rtl8821ce-dkms-git rtl8821ce-dkms-git.tar.gz
  204. [manjaro@manjaro tmp]$ cd rtl8821ce-dkms-git/
  205. [manjaro@manjaro rtl8821ce-dkms-git]$ ls
  206. PKGBUILD src
  207. [manjaro@manjaro rtl8821ce-dkms-git]$ ls src
  208. [manjaro@manjaro rtl8821ce-dkms-git]$ git clone git+https://github.com/tomaspinho/rtl8821ce.git
  209. Клонирование в «rtl8821ce»…
  210. fatal: unable to find remote helper for 'git+https'
  211. [manjaro@manjaro rtl8821ce-dkms-git]$ git clone https://github.com/tomaspinho/rtl8821ce.git
  212. Клонирование в «rtl8821ce»…
  213. remote: Enumerating objects: 22, done.
  214. remote: Counting objects: 100% (22/22), done.
  215. remote: Compressing objects: 100% (20/20), done.
  216. remote: Total 1495 (delta 5), reused 7 (delta 2), pack-reused 1473
  217. Получение объектов: 100% (1495/1495), 5.72 MiB | 1.07 MiB/s, готово.
  218. Определение изменений: 100% (812/812), готово.
  219. [manjaro@manjaro rtl8821ce-dkms-git]$ ls
  220. PKGBUILD rtl8821ce src
  221. [manjaro@manjaro rtl8821ce-dkms-git]$ ls rtl8821ce/
  222. Dockerfile Makefile README.md core dkms-remove.sh get_sources.sh halmac.mk include platform runwpa
  223. Kconfig PKGBUILD clean dkms-install.sh dkms.conf hal ifcfg-wlan0 os_dep rtl8821c.mk wlan0dhcp
  224. [manjaro@manjaro rtl8821ce-dkms-git]$ man pacman
  225. [manjaro@manjaro rtl8821ce-dkms-git]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement