## 짧은 리눅스 지식으로 패킹하다 실패했습니다. ㅠㅠ
안녕하세요. 이번에야 패키지를 제작합니다.
일단 패키지 제작과정을 공유 드립니다.
1. 필요 라이브러리 확인
일단 설치과정을 아래의 글에 따라 진행합니다.
https://cafe.naver.com/mk802/27948
프로세스를 확인하고 lsof 명령을 통해 mpd 프로세스가 열고 있는 라이브러리들을 확인합니다.
root@AOL-Debian:~# pidof mpd
22941
root@AOL-Debian:~# lsof -p 22941
lsof: WARNING: can't stat() cgroup file system /acct
Output information may be incomplete.
lsof: WARNING: can't stat() ext4 file system /cache
Output information may be incomplete.
lsof: WARNING: can't stat() ext4 file system /private
Output information may be incomplete.
lsof: WARNING: can't stat() ext4 file system /securestore
Output information may be incomplete.
lsof: WARNING: can't stat() ext4 file system /eonuser
Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /storage
Output information may be incomplete.
lsof: WARNING: can't stat() sdcardfs file system /storage/emulated
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mpd 22941 root cwd DIR 259,12 4096 89233 /
mpd 22941 root rtd DIR 259,12 4096 89233 /
mpd 22941 root txt REG 259,12 36671028 139572 /usr/bin/mpd
mpd 22941 root mem REG 259,12 30348 100090 /lib/arm-linux-gnueabihf/libnss_files-2.28.so
mpd 22941 root mem REG 259,12 30356 100092 /lib/arm-linux-gnueabihf/libnss_nis-2.28.so
mpd 22941 root mem REG 259,12 22320 100088 /lib/arm-linux-gnueabihf/libnss_compat-2.28.so
mpd 22941 root mem REG 259,12 3031632 121967 /usr/lib/locale/locale-archive
mpd 22941 root mem REG 259,12 30400 100083 /lib/arm-linux-gnueabihf/libcrypt-2.28.so
mpd 22941 root mem REG 259,12 5484 129870 /usr/lib/arm-linux-gnueabihf/samba/libflag-mapping.so.0
mpd 22941 root mem REG 259,12 9592 129798 /usr/lib/arm-linux-gnueabihf/samba/libwinbind-client.so.0
mpd 22941 root mem REG 259,12 38444 122860 /usr/lib/arm-linux-gnueabihf/libXi.so.6.1.0
mpd 22941 root mem REG 259,12 14000 98412 /lib/arm-linux-gnueabihf/libuuid.so.1.3.0
mpd 22941 root mem REG 259,12 13380 122793 /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6.0.0
mpd 22941 root mem REG 259,12 9688 122794 /usr/lib/arm-linux-gnueabihf/libXau.so.6.0.0
mpd 22941 root mem REG 259,12 137644 98466 /lib/arm-linux-gnueabihf/libncursesw.so.5.9
mpd 22941 root mem REG 259,12 831252 98326 /lib/arm-linux-gnueabihf/libslang.so.2.3.0
mpd 22941 root mem REG 259,12 22188 122714 /usr/lib/arm-linux-gnueabihf/libffi.so.6.0.2
mpd 22941 root mem REG 259,12 42636 98344 /lib/arm-linux-gnueabihf/libgpg-error.so.0.13.0
mpd 22941 root mem REG 259,12 9580 129849 /usr/lib/arm-linux-gnueabihf/samba/libauth-sam-reply.so.0
mpd 22941 root mem REG 259,12 26016 123117 /usr/lib/arm-linux-gnueabihf/libndr-krb5pac.so.0.0.1
mpd 22941 root mem REG 259,12 157312 129872 /usr/lib/arm-linux-gnueabihf/samba/libwind-samba4.so.0.0.0
mpd 22941 root mem REG 259,12 34864 129848 /usr/lib/arm-linux-gnueabihf/samba/libroken-samba4.so.19.0.1
mpd 22941 root mem REG 259,12 137988 129866 /usr/lib/arm-linux-gnueabihf/samba/libhcrypto-samba4.so.5.0.1
mpd 22941 root mem REG 259,12 166108 129883 /usr/lib/arm-linux-gnueabihf/samba/libhx509-samba4.so.5.0.0
mpd 22941 root mem REG 259,12 9996 129853 /usr/lib/arm-linux-gnueabihf/samba/libheimbase-samba4.so.1.0.0
mpd 22941 root mem REG 259,12 63196 123091 /usr/lib/arm-linux-gnueabihf/libntdb.so.1.0
mpd 22941 root mem REG 259,12 9580 129867 /usr/lib/arm-linux-gnueabihf/samba/libutil-ntdb.so.0
mpd 22941 root mem REG 259,12 112316 129821 /usr/lib/arm-linux-gnueabihf/samba/libldbsamba.so.0
mpd 22941 root mem REG 259,12 87512 129833 /usr/lib/arm-linux-gnueabihf/samba/libsamdb-common.so.0
mpd 22941 root mem REG 259,12 67304 123125 /usr/lib/arm-linux-gnueabihf/libsamdb.so.0.0.1
mpd 22941 root mem REG 259,12 9580 129828 /usr/lib/arm-linux-gnueabihf/samba/libsamba-modules.so.0
mpd 22941 root mem REG 259,12 34156 123110 /usr/lib/arm-linux-gnueabihf/libwbclient.so.0.12
mpd 22941 root mem REG 259,12 286888 129873 /usr/lib/arm-linux-gnueabihf/samba/libasn1-samba4.so.8.0.0
mpd 22941 root mem REG 259,12 117144 123076 /usr/lib/arm-linux-gnueabihf/libldb.so.1.1.20
mpd 22941 root mem REG 259,12 21868 129805 /usr/lib/arm-linux-gnueabihf/samba/libcli-ldap-common.so.0
mpd 22941 root mem REG 259,12 13776 98373 /lib/arm-linux-gnueabihf/libattr.so.1.1.0
mpd 22941 root mem REG 259,12 13688 122830 /usr/lib/arm-linux-gnueabihf/libasyncns.so.0.3.1
mpd 22941 root mem REG 259,12 22788 98358 /lib/arm-linux-gnueabihf/libwrap.so.0.7.6
mpd 22941 root mem REG 259,12 13844 122859 /usr/lib/arm-linux-gnueabihf/libXtst.so.6.1.0
mpd 22941 root mem REG 259,12 22068 122848 /usr/lib/arm-linux-gnueabihf/libSM.so.6.0.1
mpd 22941 root mem REG 259,12 63976 122842 /usr/lib/arm-linux-gnueabihf/libICE.so.6.3.0
mpd 22941 root mem REG 259,12 5392 122857 /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1.0.0
mpd 22941 root mem REG 259,12 83756 122799 /usr/lib/arm-linux-gnueabihf/libxcb.so.1.1.0
mpd 22941 root mem REG 259,12 349376 122889 /usr/lib/arm-linux-gnueabihf/liborc-0.4.so.0.22.0
mpd 22941 root mem REG 259,12 108968 98314 /lib/arm-linux-gnueabihf/libtinfo.so.5.9
mpd 22941 root mem REG 259,12 762512 122981 /usr/lib/arm-linux-gnueabihf/libcaca.so.0.99.19
mpd 22941 root mem REG 259,12 64128 123043 /usr/lib/arm-linux-gnueabihf/libdirect-1.2.so.9.0.1
mpd 22941 root mem REG 259,12 24620 123000 /usr/lib/arm-linux-gnueabihf/libfusion-1.2.so.9.0.1
mpd 22941 root mem REG 259,12 331320 123044 /usr/lib/arm-linux-gnueabihf/libdirectfb-1.2.so.9.0.1
mpd 22941 root mem REG 259,12 43208 122854 /usr/lib/arm-linux-gnueabihf/libXext.so.6.4.0
mpd 22941 root mem REG 259,12 67440 122756 /usr/lib/arm-linux-gnueabihf/libsasl2.so.2.0.25
mpd 22941 root mem REG 259,12 9580 98391 /lib/arm-linux-gnueabihf/libkeyutils.so.1.5
mpd 22941 root mem REG 259,12 26540 122227 /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0.1
mpd 22941 root mem REG 259,12 46760 122711 /usr/lib/arm-linux-gnueabihf/libtasn1.so.6.3.2
mpd 22941 root mem REG 259,12 167548 122130 /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0.0.0
mpd 22941 root mem REG 259,12 314152 122193 /usr/lib/arm-linux-gnueabihf/libgmp.so.10.2.0
mpd 22941 root mem REG 259,12 149612 122148 /usr/lib/arm-linux-gnueabihf/libhogweed.so.2.5
mpd 22941 root mem REG 259,12 55092 100096 /lib/arm-linux-gnueabihf/libresolv-2.28.so
mpd 22941 root mem REG 259,12 517412 98472 /lib/arm-linux-gnueabihf/libgcrypt.so.20.0.3
mpd 22941 root mem REG 259,12 95888 98368 /lib/arm-linux-gnueabihf/liblzma.so.5.0.0
mpd 22941 root mem REG 259,12 30060 129807 /usr/lib/arm-linux-gnueabihf/samba/libcli-nbt.so.0
mpd 22941 root mem REG 259,12 79288 129804 /usr/lib/arm-linux-gnueabihf/samba/libauthkrb5.so.0
mpd 22941 root mem REG 259,12 115856 129879 /usr/lib/arm-linux-gnueabihf/samba/libgssapi-samba4.so.2.0.0
mpd 22941 root mem REG 259,12 34224 129799 /usr/lib/arm-linux-gnueabihf/samba/libaddns.so.0
mpd 22941 root mem REG 259,12 262992 129871 /usr/lib/arm-linux-gnueabihf/samba/libkrb5-samba4.so.26.0.0
mpd 22941 root mem REG 259,12 55036 123066 /usr/lib/arm-linux-gnueabihf/libtdb.so.1.3.6
mpd 22941 root mem REG 259,12 55196 100087 /lib/arm-linux-gnueabihf/libnsl-2.28.so
mpd 22941 root mem REG 259,12 5536 129835 /usr/lib/arm-linux-gnueabihf/samba/libserver-role.so.0
mpd 22941 root mem REG 259,12 17920 129841 /usr/lib/arm-linux-gnueabihf/samba/libtdb-wrap.so.0
mpd 22941 root mem REG 259,12 5436 129859 /usr/lib/arm-linux-gnueabihf/samba/libutil-setid.so.0
mpd 22941 root mem REG 259,12 5436 129855 /usr/lib/arm-linux-gnueabihf/samba/libsmbd-shim.so.0
mpd 22941 root mem REG 259,12 5536 129844 /usr/lib/arm-linux-gnueabihf/samba/libutil-reg.so.0
mpd 22941 root mem REG 259,12 62828 129845 /usr/lib/arm-linux-gnueabihf/samba/libsamba-cluster-support.so.0
mpd 22941 root mem REG 259,12 5484 129819 /usr/lib/arm-linux-gnueabihf/samba/libinterfaces.so.0
mpd 22941 root mem REG 259,12 58784 129831 /usr/lib/arm-linux-gnueabihf/samba/libsamba-sockets.so.0
mpd 22941 root mem REG 259,12 9580 129856 /usr/lib/arm-linux-gnueabihf/samba/libutil-tdb.so.0
mpd 22941 root mem REG 259,12 83360 123112 /usr/lib/arm-linux-gnueabihf/libdcerpc-binding.so.0.0.1
mpd 22941 root mem REG 259,12 34156 129811 /usr/lib/arm-linux-gnueabihf/samba/libdbwrap.so.0
mpd 22941 root mem REG 259,12 751008 129824 /usr/lib/arm-linux-gnueabihf/samba/libndr-samba.so.0
mpd 22941 root mem REG 259,12 9580 129897 /usr/lib/arm-linux-gnueabihf/samba/libCHARSET3.so.0
mpd 22941 root mem REG 259,12 50552 123121 /usr/lib/arm-linux-gnueabihf/libsamba-credentials.so.0.0.1
mpd 22941 root mem REG 259,12 25964 129832 /usr/lib/arm-linux-gnueabihf/samba/libsamba3-util.so.0
mpd 22941 root mem REG 259,12 13676 129860 /usr/lib/arm-linux-gnueabihf/samba/libsmb-transport.so.0
mpd 22941 root mem REG 259,12 106828 123122 /usr/lib/arm-linux-gnueabihf/libsamba-hostconfig.so.0.0.1
mpd 22941 root mem REG 259,12 58784 123118 /usr/lib/arm-linux-gnueabihf/libndr-nbt.so.0.0.1
mpd 22941 root mem REG 259,12 9580 123129 /usr/lib/arm-linux-gnueabihf/libtevent-util.so.0.0.1
mpd 22941 root mem REG 259,12 13676 129801 /usr/lib/arm-linux-gnueabihf/samba/libasn1util.so.0
mpd 22941 root mem REG 259,12 5600 129857 /usr/lib/arm-linux-gnueabihf/samba/libcom_err-samba4.so.0.25
mpd 22941 root mem REG 259,12 116200 123116 /usr/lib/arm-linux-gnueabihf/libgensec.so.0.0.1
mpd 22941 root mem REG 259,12 30060 129820 /usr/lib/arm-linux-gnueabihf/samba/libkrb5samba.so.0
mpd 22941 root mem REG 259,12 50540 129808 /usr/lib/arm-linux-gnueabihf/samba/libcliauth.so.0
mpd 22941 root mem REG 259,12 21920 129858 /usr/lib/arm-linux-gnueabihf/samba/libcli-cldap.so.0
mpd 22941 root mem REG 259,12 34628 123074 /usr/lib/arm-linux-gnueabihf/libtevent.so.0.9.28
mpd 22941 root mem REG 259,12 5436 129865 /usr/lib/arm-linux-gnueabihf/samba/libsocket-blocking.so.0
mpd 22941 root mem REG 259,12 63712 122845 /usr/lib/arm-linux-gnueabihf/libgomp.so.1.0.0
mpd 22941 root mem REG 259,12 13932 98399 /lib/arm-linux-gnueabihf/libcap.so.2.24
mpd 22941 root mem REG 259,12 319980 122865 /usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-5.0.so
mpd 22941 root mem REG 259,12 30560 98345 /lib/arm-linux-gnueabihf/libjson-c.so.2.0.0
mpd 22941 root mem REG 259,12 222944 122893 /usr/lib/arm-linux-gnueabihf/libtheora.so.0.3.10
mpd 22941 root mem REG 259,12 17920 123051 /usr/lib/arm-linux-gnueabihf/libdnet.so.2.43.2
mpd 22941 root mem REG 259,12 936656 122811 /usr/lib/arm-linux-gnueabihf/libX11.so.6.3.0
mpd 22941 root mem REG 259,12 43084 123098 /usr/lib/arm-linux-gnueabihf/libslp.so.1.0.1
mpd 22941 root mem REG 259,12 308576 98475 /lib/arm-linux-gnueabihf/libpcre.so.3.13.1
mpd 22941 root mem REG 259,12 22508 100097 /lib/arm-linux-gnueabihf/librt-2.28.so
mpd 22941 root mem REG 259,12 91724 122901 /usr/lib/arm-linux-gnueabihf/libva.so.1.3904.0
mpd 22941 root mem REG 259,12 32208 122870 /usr/lib/arm-linux-gnueabihf/libgsm.so.1.0.12
mpd 22941 root mem REG 259,12 93932 122877 /usr/lib/arm-linux-gnueabihf/libopenjpeg.so.1.5.2
mpd 22941 root mem REG 259,12 567368 122891 /usr/lib/arm-linux-gnueabihf/libschroedinger-1.0.so.0.11.0
mpd 22941 root mem REG 259,12 70988 122892 /usr/lib/arm-linux-gnueabihf/libspeex.so.1.5.0
mpd 22941 root mem REG 259,12 59012 122890 /usr/lib/arm-linux-gnueabihf/libtheoradec.so.1.1.4
mpd 22941 root mem REG 259,12 186120 122900 /usr/lib/arm-linux-gnueabihf/libtheoraenc.so.1.1.2
mpd 22941 root mem REG 259,12 1256752 122819 /usr/lib/arm-linux-gnueabihf/vfp/neon/libvpx.so.1.3.0
mpd 22941 root mem REG 259,12 744216 122903 /usr/lib/arm-linux-gnueabihf/libx264.so.142
mpd 22941 root mem REG 259,12 408588 122902 /usr/lib/arm-linux-gnueabihf/libxvidcore.so.4.3
mpd 22941 root mem REG 259,12 46772 122806 /usr/lib/arm-linux-gnueabihf/neon/vfp/libavresample.so.2.1.0
mpd 22941 root mem REG 259,12 174380 98348 /lib/arm-linux-gnueabihf/libreadline.so.6.3
mpd 22941 root mem REG 259,12 260664 123075 /usr/lib/arm-linux-gnueabihf/libopenal.so.1.15.1
mpd 22941 root mem REG 259,12 282556 123082 /usr/lib/arm-linux-gnueabihf/libSDL-1.2.so.0.11.4
mpd 22941 root mem REG 259,12 9800 122862 /usr/lib/arm-linux-gnueabihf/libpulse-simple.so.0.1.0
mpd 22941 root mem REG 259,12 9772 100084 /lib/arm-linux-gnueabihf/libdl-2.28.so
mpd 22941 root mem REG 259,12 202816 122757 /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2.10.3
mpd 22941 root mem REG 259,12 34256 122755 /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2.10.3
mpd 22941 root mem REG 259,12 9764 98356 /lib/arm-linux-gnueabihf/libcom_err.so.2.1
mpd 22941 root mem REG 259,12 145292 122687 /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3.1
mpd 22941 root mem REG 259,12 547264 122234 /usr/lib/arm-linux-gnueabihf/libkrb5.so.3.3
mpd 22941 root mem REG 259,12 172228 122141 /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2.2
mpd 22941 root mem REG 259,12 743168 122222 /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28.41.0
mpd 22941 root mem REG 259,12 165756 122150 /usr/lib/arm-linux-gnueabihf/libnettle.so.4.7
mpd 22941 root mem REG 259,12 104400 122766 /usr/lib/arm-linux-gnueabihf/libssh2.so.1.0.1
mpd 22941 root mem REG 259,12 79904 122762 /usr/lib/arm-linux-gnueabihf/librtmp.so.1
mpd 22941 root mem REG 259,12 194108 122722 /usr/lib/arm-linux-gnueabihf/libidn.so.11.6.12
mpd 22941 root mem REG 259,12 91664 98323 /lib/arm-linux-gnueabihf/libsystemd.so.0.3.1
mpd 22941 root mem REG 259,12 58952 123070 /usr/lib/arm-linux-gnueabihf/libtalloc.so.2.1.2
mpd 22941 root mem REG 259,12 38856 98313 /lib/arm-linux-gnueabihf/libbsd.so.0.7.0
mpd 22941 root mem REG 259,12 30060 129834 /usr/lib/arm-linux-gnueabihf/samba/libsecrets3.so.0
mpd 22941 root mem REG 259,12 83524 129840 /usr/lib/arm-linux-gnueabihf/samba/libsmbregistry.so.0
mpd 22941 root mem REG 259,12 1082732 129812 /usr/lib/arm-linux-gnueabihf/samba/libdcerpc-samba.so.0
mpd 22941 root mem REG 259,12 2114976 123119 /usr/lib/arm-linux-gnueabihf/libndr-standard.so.0.0.1
mpd 22941 root mem REG 259,12 9580 129846 /usr/lib/arm-linux-gnueabihf/samba/libutil-cmdline.so.0
mpd 22941 root mem REG 259,12 116180 129818 /usr/lib/arm-linux-gnueabihf/samba/libgse.so.0
mpd 22941 root mem REG 259,12 112032 129850 /usr/lib/arm-linux-gnueabihf/samba/libcli-smb-common.so.0
mpd 22941 root mem REG 259,12 54740 123105 /usr/lib/arm-linux-gnueabihf/libndr.so.0.0.3
mpd 22941 root mem REG 259,12 309824 123127 /usr/lib/arm-linux-gnueabihf/libsmbconf.so.0
mpd 22941 root mem REG 259,12 841268 129815 /usr/lib/arm-linux-gnueabihf/samba/liberrors.so.0
mpd 22941 root mem REG 259,12 75236 129830 /usr/lib/arm-linux-gnueabihf/samba/libsamba-security.so.0
mpd 22941 root mem REG 259,12 9580 129852 /usr/lib/arm-linux-gnueabihf/samba/liblibcli-lsa3.so.0
mpd 22941 root mem REG 259,12 87456 129823 /usr/lib/arm-linux-gnueabihf/samba/libmsrpc3.so.0
mpd 22941 root mem REG 259,12 259436 129822 /usr/lib/arm-linux-gnueabihf/samba/liblibsmb.so.0
mpd 22941 root mem REG 259,12 141120 123124 /usr/lib/arm-linux-gnueabihf/libsamba-util.so.0.0.1
mpd 22941 root mem REG 259,12 952028 100082 /lib/arm-linux-gnueabihf/libc-2.28.so
mpd 22941 root mem REG 259,12 101020 98480 /lib/arm-linux-gnueabihf/libgcc_s.so.1
mpd 22941 root mem REG 259,12 1023864 121812 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
mpd 22941 root mem REG 259,12 26903812 121943 /usr/lib/arm-linux-gnueabihf/libicudata.so.60.2
mpd 22941 root mem REG 259,12 1197500 121949 /usr/lib/arm-linux-gnueabihf/libicuuc.so.60.2
mpd 22941 root mem REG 259,12 1803972 121944 /usr/lib/arm-linux-gnueabihf/libicui18n.so.60.2
mpd 22941 root mem REG 259,12 529880 122849 /usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2.0.10
mpd 22941 root mem REG 259,12 34248 121968 /usr/lib/arm-linux-gnueabihf/libshine.so.3.0.1
mpd 22941 root mem REG 259,12 99644 121970 /usr/lib/arm-linux-gnueabihf/libtwolame.so.0.0.0
mpd 22941 root mem REG 259,12 207084 122878 /usr/lib/arm-linux-gnueabihf/libmp3lame.so.0.0.0
mpd 22941 root mem REG 259,12 1480020 123062 /usr/lib/arm-linux-gnueabihf/libsamplerate.so.0.1.8
mpd 22941 root mem REG 259,12 108332 122871 /usr/lib/arm-linux-gnueabihf/libsoxr.so.0.1.0
mpd 22941 root mem REG 259,12 79500 98321 /lib/arm-linux-gnueabihf/libz.so.1.2.11
mpd 22941 root mem REG 259,12 59220 116097 /usr/lib/libid3tag.so.0.3.0
mpd 22941 root mem REG 259,12 208556 122863 /usr/lib/arm-linux-gnueabihf/libpulse.so.0.17.3
mpd 22941 root mem REG 259,12 47200 123107 /usr/lib/arm-linux-gnueabihf/libshout.so.3.2.0
mpd 22941 root mem REG 259,12 110232 100095 /lib/arm-linux-gnueabihf/libpthread-2.28.so
mpd 22941 root mem REG 259,12 182584 123067 /usr/lib/arm-linux-gnueabihf/libjack.so.0.1.0
mpd 22941 root mem REG 259,12 207936 123101 /usr/lib/arm-linux-gnueabihf/libroar.so.2
mpd 22941 root mem REG 259,12 22988 116100 /usr/lib/libao.so.4.0.0
mpd 22941 root mem REG 259,12 49628 98484 /lib/arm-linux-gnueabihf/libbz2.so.1.0.4
mpd 22941 root mem REG 259,12 26116 123161 /usr/lib/arm-linux-gnueabihf/libyajl.so.2.1.0
mpd 22941 root mem REG 259,12 610952 122820 /usr/lib/arm-linux-gnueabihf/libasound.so.2.0.0
mpd 22941 root mem REG 259,12 814280 98504 /lib/arm-linux-gnueabihf/libglib-2.0.so.0.4200.1
mpd 22941 root mem REG 259,12 435724 100085 /lib/arm-linux-gnueabihf/libm-2.28.so
mpd 22941 root mem REG 259,12 50924 123081 /usr/lib/arm-linux-gnueabihf/libmms.so.0.0.2
mpd 22941 root mem REG 259,12 97836 121914 /usr/lib/arm-linux-gnueabihf/libcdio.so.18.0.0
mpd 22941 root mem REG 259,12 21824 121916 /usr/lib/arm-linux-gnueabihf/libcdio_cdda.so.2.0.0
mpd 22941 root mem REG 259,12 21820 121918 /usr/lib/arm-linux-gnueabihf/libcdio_paranoia.so.2.0.0
mpd 22941 root mem REG 259,12 215512 116118 /usr/lib/libmodplug.so.1.0.0
mpd 22941 root mem REG 259,12 210044 123059 /usr/lib/arm-linux-gnueabihf/libfaad.so.2.0.0
mpd 22941 root mem REG 259,12 55680 123088 /usr/lib/arm-linux-gnueabihf/libmpcdec.so.6.1.0
mpd 22941 root mem REG 259,12 109568 122805 /usr/lib/arm-linux-gnueabihf/neon/vfp/libavutil.so.54.3.0
mpd 22941 root mem REG 259,12 5601644 122808 /usr/lib/arm-linux-gnueabihf/neon/vfp/libavcodec.so.56.1.0
mpd 22941 root mem REG 259,12 861080 122810 /usr/lib/arm-linux-gnueabihf/neon/vfp/libavformat.so.56.1.0
mpd 22941 root mem REG 259,12 202060 122882 /usr/lib/arm-linux-gnueabihf/libopus.so.0.5.0
mpd 22941 root mem REG 259,12 195168 123090 /usr/lib/arm-linux-gnueabihf/libmpg123.so.0.40.3
mpd 22941 root mem REG 259,12 79316 123073 /usr/lib/arm-linux-gnueabihf/libmad.so.0.2.1
mpd 22941 root mem REG 259,12 112060 123157 /usr/lib/arm-linux-gnueabihf/libwavpack.so.1.1.5
mpd 22941 root mem REG 259,12 54852 123156 /usr/lib/arm-linux-gnueabihf/libWildMidi.so.1.1.2
mpd 22941 root mem REG 259,12 285624 123068 /usr/lib/arm-linux-gnueabihf/libfluidsynth.so.1.5.2
mpd 22941 root mem REG 259,12 166868 116123 /usr/lib/libresid-builder.so.0.0.1
mpd 22941 root mem REG 259,12 33060 116125 /usr/lib/libsidutils.so.0.0.4
mpd 22941 root mem REG 259,12 179508 116124 /usr/lib/libsidplay2.so.1.0.1
mpd 22941 root mem REG 259,12 1708448 121961 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1
mpd 22941 root mem REG 259,12 340240 121962 /usr/lib/arm-linux-gnueabihf/libssl.so.1.1
mpd 22941 root mem REG 259,12 274368 116114 /usr/lib/libgme.so.0.5.3
mpd 22941 root mem REG 259,12 173188 123084 /usr/lib/arm-linux-gnueabihf/libmikmod.so.3.3.0
mpd 22941 root mem REG 259,12 137028 122983 /usr/lib/arm-linux-gnueabihf/libaudiofile.so.1.0.0
mpd 22941 root mem REG 259,12 285404 122855 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25
mpd 22941 root mem REG 259,12 137008 122850 /usr/lib/arm-linux-gnueabihf/libvorbis.so.0.4.7
mpd 22941 root mem REG 259,12 47004 122775 /usr/lib/arm-linux-gnueabihf/libavahi-client.so.3.2.9
mpd 22941 root mem REG 259,12 34792 122769 /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3.5.3
mpd 22941 root mem REG 259,12 137472 122837 /usr/lib/arm-linux-gnueabihf/libFLAC.so.8.3.0
mpd 22941 root mem REG 259,12 125900 123092 /usr/lib/arm-linux-gnueabihf/libnfs.so.4.2.0
mpd 22941 root mem REG 259,12 276084 122761 /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4.3.0
mpd 22941 root mem REG 259,12 55788 116101 /usr/lib/libmpdclient.so.2.0.9
mpd 22941 root mem REG 259,12 198100 98158 /lib/arm-linux-gnueabihf/libdbus-1.so.3.19.9
mpd 22941 root mem REG 259,12 31324 122958 /usr/lib/arm-linux-gnueabihf/libixml.so.2.0.8
mpd 22941 root mem REG 259,12 17716 122961 /usr/lib/arm-linux-gnueabihf/libthreadutil.so.6.0.4
mpd 22941 root mem REG 259,12 145464 122974 /usr/lib/arm-linux-gnueabihf/libupnp.so.6.3.4
mpd 22941 root mem REG 259,12 95704 98494 /lib/arm-linux-gnueabihf/libexpat.so.1.6.0
mpd 22941 root mem REG 259,12 99692 123153 /usr/lib/arm-linux-gnueabihf/libsmbclient.so.0.2.1
mpd 22941 root mem REG 259,12 105840 100078 /lib/arm-linux-gnueabihf/ld-2.28.so
mpd 22941 root mem REG 259,12 17684 122838 /usr/lib/arm-linux-gnueabihf/libogg.so.0.8.2
mpd 22941 root 0r CHR 1,3 0t0 2228 /dev/null
mpd 22941 root 1w REG 259,12 731 113824 /var/log/mpd/mpd.log
mpd 22941 root 2w REG 259,12 731 113824 /var/log/mpd/mpd.log
mpd 22941 root 3r CHR 1,9 0t0 2232 /dev/urandom
mpd 22941 root 4u 0000 0,8 0 5746 anon_inode
mpd 22941 root 5u 0000 0,8 0 5746 anon_inode
mpd 22941 root 6u 0000 0,8 0 5746 anon_inode
mpd 22941 root 7u 0000 0,8 0 5746 anon_inode
mpd 22941 root 8u 0000 0,8 0 5746 anon_inode
mpd 22941 root 9u 0000 0,8 0 5746 anon_inode
mpd 22941 root 10u 0000 0,8 0 5746 anon_inode
mpd 22941 root 11u IPv4 542193 0t0 TCP *:6600 (LISTEN)
mpd 22941 root 12u unix 0x00000000 0t0 544831 socket
mpd 22941 root 13u IPv4 543136 0t0 TCP localhost:6600->localhost:49786 (ESTABLISHED)
root@AOL-Debian:~#
필요한 파일들을 debian8 과 대조를 해 보고 없는 파일들을 뽑아냅니다.
2. 경로 지정 및 mpdconfig 파일 수정
없는 라이브러라 파일 위치 지정
/usr/local/lib/mpd
mpdconfig 파일 내용 수정
#!/bin/bash
echo "============================================================================================="
echo "Dinobot U5 Mini MusicPlayer Daemon Configuration Script"
echo "Ref : androidoverlinux.djjproject.com"
echo "You can exit with CTRL+C"
echo "============================================================================================="
echo ""
echo "Configuration Start"
read -p 'Music Directory : ' dir
echo ""
echo "# friendly your dac name, eg. Hisilicon DAC or LGHIFIDAC"
read -p 'DAC Name : ' name
echo ""
echo "# When you use internal DAC, use hw:0,0"
echo "# or use USB DAC, enter hw:2,0"
read -p 'Device (hw:0,0 or hw:2,0) : ' device
echo ""
echo "# If your USB DAC can play DSD file, enter yes."
echo "# Hisilicon DAC --> no"
read -p 'DSD Native (yes or no) : ' dsd
cat << EOF > /etc/mpd.conf
music_directory "$dir"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/tag_cache"
log_file "/var/log/mpd/mpd.log"
pid_file "/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "root"
group "root"
bind_to_address "0.0.0.0"
port "6600"
auto_update "yes"
audio_output {
type "alsa"
name "$name"
device "$device"
auto_resample "no"
auto_channels "no"
auto_format "no"
mixer_type "software"
dsd_usb "$dsd"
}
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
decoder {
plugin "sacdiso"
dstdec_threads "4"
edited_master "true"
lsbitfirst "false"
playable_area "stereo"
}
decoder {
plugin "dvdaiso"
no_downmixes "false"
no_short_tracks "false"
playable_area "multichannel"
tags_path "/var/lib/mpd/dvda_metabase"
tags_with_iso "true"
}
EOF
echo ""
echo "# /etc/mpd.conf : Configuration file saved."
echo ""
echo "# If you use USB DAC enter Y, else N"
read -p 'Drop Android USB Audio Service : ' input
case $input in
Y)
system-rw
sed -i -e '121,138s/^/#/' /system/etc/audio_policy.conf
echo "# You should reboot device."
;;
N)
;;
*)
;;
esac
echo "============================================================================================="
echo "Configuration Completed. Enjoy your U5 MPD and DLNA MPD Service."
echo "============================================================================================="
3. 라이브러리 대조 결과
/lib/arm-linux-gnueabihf/ld-2.28.so
/lib/arm-linux-gnueabihf/libc-2.28.so
/lib/arm-linux-gnueabihf/libcrypt-2.28.so
/lib/arm-linux-gnueabihf/libdbus-1.so.3.19.9
/lib/arm-linux-gnueabihf/libdl-2.28.so
/lib/arm-linux-gnueabihf/libm-2.28.so
/lib/arm-linux-gnueabihf/libnsl-2.28.so
/lib/arm-linux-gnueabihf/libnss_compat-2.28.so
/lib/arm-linux-gnueabihf/libnss_files-2.28.so
/lib/arm-linux-gnueabihf/libnss_nis-2.28.so
/lib/arm-linux-gnueabihf/libpthread-2.28.so
/lib/arm-linux-gnueabihf/libresolv-2.28.so
/lib/arm-linux-gnueabihf/librt-2.28.so
/lib/arm-linux-gnueabihf/libz.so.1.2.11
/usr/lib/arm-linux-gnueabihf/libcdio.so.18.0.0
/usr/lib/arm-linux-gnueabihf/libcdio_cdda.so.2.0.0
/usr/lib/arm-linux-gnueabihf/libcdio_paranoia.so.2.0.0
/usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1
/usr/lib/arm-linux-gnueabihf/libicudata.so.60.2
/usr/lib/arm-linux-gnueabihf/libicui18n.so.60.2
/usr/lib/arm-linux-gnueabihf/libicuuc.so.60.2
/usr/lib/arm-linux-gnueabihf/libndr-krb5pac.so.0.0.1
/usr/lib/arm-linux-gnueabihf/libshine.so.3.0.1
/usr/lib/arm-linux-gnueabihf/libssl.so.1.1
/usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
/usr/lib/arm-linux-gnueabihf/libtwolame.so.0.0.0
상기의 파일들이 필요합니다. 물론 스태틱 링크를 쓰면 좋겠지만, 살짝 귀찮아서 넘깁니다.. ㅠㅠ
https://github.com/djjproject/mpd_0.21_armhf
전체적인 파일 구조는 상기에서 확인 가능합니다.
root@AOL-Debian:~/u5pvr-mpdromance# tree
.
├── DEBIAN
│ ├── control # 패키지 설명 파일 (의존성 명기)
│ ├── postinst # 파일 복사 전에 할 작업 스크립트
│ └── preinst # 파일 복사 후 할 작업 스크립트
├── etc # 이하 모두 그대로 복사 진행됨
│ └── mpd.conf
├── README.md
└── usr
├── bin
│ └── mpd
└── local
├── bin
│ └── mpdconfig
└── lib
├── ld-2.28.so
├── libc-2.28.so
├── libcdio_cdda.so.2.0.0
├── libcdio_paranoia.so.2.0.0
├── libcdio.so.18.0.0
├── libcrypt-2.28.so
├── libcrypto.so.1.1
├── libdbus-1.so.3.19.9
├── libdl-2.28.so
├── libicudata.so.60.2
├── libicui18n.so.60.2
├── libicuuc.so.60.2
├── libm-2.28.so
├── libndr-krb5pac.so.0.0.1
├── libnsl-2.28.so
├── libnss_compat-2.28.so
├── libnss_files-2.28.so
├── libnss_nis-2.28.so
├── libpthread-2.28.so
├── libresolv-2.28.so
├── librt-2.28.so
├── libshine.so.3.0.1
├── libssl.so.1.1
├── libstdc++.so.6.0.25
├── libtwolame.so.0.0.0
└── libz.so.1.2.11
7 directories, 33 files
root@AOL-Debian:~/u5pvr-mpdromance/DEBIAN# cat *
# control 파일 내용
Package: u5pvr-mpd-romanceassassin
Version: 1.0-romanceassassin
Architecture: armhf
Depends: mpd
Maintainer: djjproject (djj9404@gmail.com)
Homepage: http://blog.djjproject.com/
Description: Music Player Daemon compiled by romanceassassin. ver 0.21 / sacd iso support.
# Description 의 마지막은 한줄 공백으로 끝나야 에러가 안납니다.!!!!!
# postisnt 내용
#!/bin/sh
chmod a+x /usr/bin/mpd
chmod a+x /usr/local/bin/mpdconfig
echo "#### mpdconfig step ####"
/usr/local/bin/mpdconfig
# preinst 내용
#!/bin/sh
echo "#### custom mpd installation started. ####"
echo "#### compiled by romanceassassin. maintained by djjproject. ####"
물론 자동화 툴이 있겠지만, 작은 패키지 만드는데 노가다가 더 편한것 같습니다.
4. 패키지 빌드 및 테스트
# 패키지 폴더 한단계 위로 이동합니다.
root@AOL-Debian:~/u5pvr-mpdromance/DEBIAN# cd ~
# 깃 허브용 파일을 지워줍니다. (다음에는 폴더 분류 해야겠습니다 ㅠㅠ)
root@AOL-Debian:~# rm -rf u5pvr-mpdromance/.git/
root@AOL-Debian:~# rm u5pvr-mpdromance/README.md
# 패키지를 -b 명령으로 만듭니다.
root@AOL-Debian:~# dpkg -b u5pvr-mpdromance/
dpkg-deb: building package `u5pvr-mpd-romanceassassin' in `u5pvr-mpdromance.deb'.
# 용량을 확인해 봅니다.
root@AOL-Debian:~# ls -li -h | grep u5pvr-mpdromance
205296 drwxr-xr-x 5 root root 4.0K Jan 16 09:00 u5pvr-mpdromance
163715 -rw-r--r-- 1 root root 19M Jan 16 09:03 u5pvr-mpdromance.deb
이제 대망의 테스트를 해야겠네요.. 업데이트의 재설치 메뉴를 통해 리눅스 펌웨어를 재설치 하고 진행해 보았습니다.
## 절대로 적용하지 마시길 바랍니다. 정상적으로 테스트 결과가 나오지 않았습니다.
'AndroidOverLinux' 카테고리의 다른 글
U5 리눅스 펌웨어 데비안9 마이그레이션 작업 (테스팅) (0) | 2019.03.26 |
---|---|
린백 런처 아이콘 위치 수정하기 (난이도 : 중상) (1) | 2019.01.31 |
U5PVR Sabre WebDAV 설치하기 (apache2 / php5 / composer) (0) | 2018.12.21 |
Seafile Server 설치하기 (13) | 2018.12.18 |
U5MINI Android8 리뷰 (안정적, 만족도 340%) (0) | 2018.11.23 |
댓글